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

Let's write a program, /prog/...

Name: Anonymous 2008-04-01 13:07

Forget about header files. Just write.


int main(int argc, char *argv[]) {

Name: Anonymous 2008-04-02 12:51

Simply call the system 'link' function
Simply
What irony.

lol @ "localization", when more and more of the world knows English now. Also, look at the excessive comments.

compare and contrast with anoncoreutils' link.c:
#include <unistd.h>
#include <stdio.h>
#include <errno.h>

int main(int argc, char **argv) {
 if(argc<3) {
  fprintf(stderr,"Usage: link file1, file2\n");
  return 1;
 }
 if(link(argv[1],argv[2])) {
  fprintf(stderr,"%s: could not create link: %s\n",argv[0],strerror(errno));
  return 1;
 }
 return 0;
}


some people prefer excessive verbosity and bureaucracy. others, simplicity.

HEY MICHAEL STONE, NOONE CARES THAT YOU WROTE SOMETHING SO TRIVIAL EVEN THOUGH YOU TRIED TO MAKE IT SEEM NONTRIVIAL.

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