Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Cats

Name: Anonymous 2011-09-26 2:54

Tell me about your cat(s), /prog/.

Name: Anonymous 2011-09-26 10:06

>>16

I was referring to >>8 by the way.

Here's a better version:

#include <stdio.h>
int main(int argc, char **argv) {
    int i = 0, c;
    FILE *f = stdin;
    if (argc == 1)
        goto no_arguments;
    while (i++ < argc) {
        f = fopen(argv[i], "rb");
        no_arguments:
        while ((c = fgetc(f)) != EOF)
            putchar(c);
    }
    return 0;
}


>waaaah, you don't have -e!
Use printf. This is not cat's purpose.

>waaaah, you don't have -n!
Use printf. This is not cat's purpose.

>waaaah, you don't have --squeeze-blank/--show-tabs/--show-nonprinting/--gnu-bloat-option-frice!
Fuck you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List