I would just like to have some opinions on this as
coding style.
Is this bad style, why or why not?
All opinions appreciated.
int CommitEntry(FILE *f, char *Ed[], int n) {
int y = 0, quit;
if (f) {
fprintf(f,"%s\n","<br><blockquote><br>"
start:
fprintf(f,"%s\n",Ed[y++]);
quit = y == n ? 1 : 0;
if (quit) {
fprintf(f,"%s\n","</blockquote><br><br>"
fflush(f);
fclose(f);
exit(0);
}
goto start;
}
return 1;
}
coding style.
Is this bad style, why or why not?
All opinions appreciated.
int CommitEntry(FILE *f, char *Ed[], int n) {
int y = 0, quit;
if (f) {
fprintf(f,"%s\n","<br><blockquote><br>"
start:
fprintf(f,"%s\n",Ed[y++]);
quit = y == n ? 1 : 0;
if (quit) {
fprintf(f,"%s\n","</blockquote><br><br>"
fflush(f);
fclose(f);
exit(0);
}
goto start;
}
return 1;
}