Shakespeare and friends…

Welcome to my friend and new editor @deadseasec the website looks better no ?
http://deadseasec.com
Translation of Shakespeare in C :#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

void main(){
int i=0;// nombre d’années
bool be = 0;
if (i==0) be=1; // why ?
while ( be || !be ) {
printf(“That is the question”);
i++; //une année de plus
if (i >= rand() % 129 ) be=0; // why ?
}
}

Patch
—test.c
+++test.c
@@ -1,14 +1,26 @@
#include <stdio.h>
#include <stdlib.h>

#include <stdbool.h>

+#define TAILLE_MAX 1000
void main(){
int i=0;// nombre d’années
bool be = 0;
+ char chaine[TAILLE_MAX] = “”;
+ char nottobe=”Not To Be”;
+ char *tobe=”To Be”;
if (i==0) be=1; // why ?
+ FILE * confFile = fopen( “conf.txt”, “r” );
+ if (confFile == NULL) {
+ printf(“Cannot open configuration file.n” );
+ exit(EXIT_FAILURE);}
+ {
+ for(i = 0; i < 2; i++){
+ fscanf(confFile, “%c”, &chaine[i]);
+ }
+ }
while ( be || !be ) {
– printf(“That is the question”);
i++; //une année de plus
– if (i >= rand() % 129 ) be=0; // why ?
– }
+ if (
chaine==tobe || *chaine==nottobe){printf(“That is the questionn”);exit(EXIT_SUCCESS);}
+ if (i >= rand() % 129 ){ be=0;printf(“You DEAD! What is the question ?n”); exit(EXIT_FAILURE);}
+ }
}

nano test.c (shift-ctrl-v lkdn POST content)
gcc test .c-o test_v1
./test_v1
nano MAJ_01.patch (shift-ctrl-v lkdn COMMENT content)
patch -p0 < MAj_01.patch
gcc test.c -o test_v2
nano conf.txt (Response)
./test_v2

Your mission is to find the conf.txt maybe one Motorola C118 to win as a giveaway for the first good answer in the comment section…




Motorola C118

Leave a Reply