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

/prog/ version control

Name: Anonymous 2008-03-18 21:30

Ok, let's bring something interesting to /prog/, version control. Some repository of scripts, on some version control system.

The cheapest way is to get a svn on google code (and publish user/pass), unless someone wants to host something else that integrates better with this public/anonymous system.

What do you think?

Name: Anonymous 2008-03-19 3:23

>>24
lets begin with something trivial

true.c
------
int main() {
 return 0;
}

false.c
-------
int main() {
 return 1;
}


HAHAHA
in case he doesn't get it, *that's* system specific and will fail in other systems.
You need to include <stdlib.h> and return EXIT_FAILURE or EXIT_SUCCESS
1 might not indicate failure on a *lot* of systems. morons.

Here's your code improved.

/* true.c
   cc -DANON_FALSE true.c for false.c
 */

#include <stdlib.h>

int main(void)
{
    return
#ifndef ANON_FALSE
  EXIT_SUCCESS
#else
  EXIT_FAILURE
#endif
;
}

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