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

suckless unix tools

Name: Anonymous 2015-04-02 21:41

Name: Anonymous 2015-04-26 16:32

>>112

Amusing that the ACU version has error checking, while the sucklessmore version doesn't despite looking very similar.

It does now.

#include <stdio.h>
#include <string.h>
#include "util.h"

int
main(int argc, char *argv[])
{
int nflag = 0;

argv0 = argv[0], argc--, argv++;

if (*argv && !strcmp(*argv, "-n")) {
nflag = 1;
argc--, argv++;
}

for (; *argv; argc--, argv++)
putword(stdout, *argv);
if (!nflag)
putchar('\n');

return fshut(stdout, "<stdout>");
}


Why don't you help with the missing tools?
Are you really all talk and no action as people say? This is your chance to actually help a project that's going to be completed.

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