#include
<
stdio.h
>
#include < string .h >
#define GOTO "goto"
void main( int tgoo, char * goot[])
... {
FILE *gtoo;
char togo;
int gogo;
gtoo=fopen(goot[1], "r");
toog:
if(!feof(gtoo))
...{
toto:
gogo=0;
golo:
if(gogo<strlen(GOTO))...{
fread(&togo, sizeof(char),1,gtoo);
if(togo!=GOTO[gogo])...{
fseek(gtoo, -gogo, SEEK_CUR);
goto toto;
}
gogo++;
}
else
goto gooo;
goto golo;
gooo:
printf("Found at %d ", ftell(gtoo)-strlen(GOTO));
}
else
goto gool;
goto toog;
gool:;
}
#include < string .h >
#define GOTO "goto"
void main( int tgoo, char * goot[])
... {
FILE *gtoo;
char togo;
int gogo;
gtoo=fopen(goot[1], "r");
toog:
if(!feof(gtoo))
...{
toto:
gogo=0;
golo:
if(gogo<strlen(GOTO))...{
fread(&togo, sizeof(char),1,gtoo);
if(togo!=GOTO[gogo])...{
fseek(gtoo, -gogo, SEEK_CUR);
goto toto;
}
gogo++;
}
else
goto gooo;
goto golo;
gooo:
printf("Found at %d ", ftell(gtoo)-strlen(GOTO));
}
else
goto gool;
goto toog;
gool:;
}