Toot

Written by Charlotte 🦝 :therian: on 2025-01-28 at 09:03

(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

Mentions

=> View charlotte@akko.chir.rs profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113905175342320532
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
226.020525 milliseconds
Gemini-to-HTML Time
1.596659 milliseconds

This content has been proxied by September (3851b).