(bugs intentional)
char buf1[4], buf2[4], buf3[4];
int state = 0;
for(;;) {
switch(state) {
case 0:
if ((file1 = fopen(fname1, "r")) < 0) {
state = 3;
continue;
}
if ((file2 = fopen(fname2, "r")) < 0) {
state = 2;
continue;
}
if ((file1 = fopen(fname3, "r")) < 0) {
state = 1;
continue;
}
fgets(buf1, 100, file1);
fgets(buf2, 100, file2);
fgets(buf3, 100, file3);
strcat(buf1, buf2);
strcat(buf1, buf3);
printf(buf1);
fclose(file3);
case 1:
fclose(file2);
case 2:
fclose(file1);
case 3:
return;
}
}
=> More informations about this toot | View the thread | More toots from charlotte@akko.chir.rs
=> View charlotte@akko.chir.rs profile
text/gemini
This content has been proxied by September (3851b).