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

Emacs is the standard

Name: Anonymous 2011-04-15 4:43

Name: Anonymous 2011-04-15 10:07

>>9

Look, I wrote an OS. You can even use it to run a real editor, like ed (1), so it must be an OS.

#include <stdlib.h> /* This contains something very important */

int /* This is the return value of the function */
main( /* This is the main function which is where all the magic happens */
     argc, /* See line 8-9 */
     argv /* See line 10-11 */
     )
     int /* This is the type of number of command line arguments */
     argc; /* This counts the number of command line arguments */
     char ** /* This is the type of pointers to the command line arguments */
     argv; /* This contains pointers to the command line arguments */ {
  while ( /* This is a control structure which loops as long as something is true */
     --argc /* This is the condition which determines if the program should continue looping */
     )
    system( /* This function apparently defines an OS */
       *++argv /* This is the string the OS should execute */
       );

  exit( /* This function exits the OS */
       EXIT_SUCCESS /* This indicates that the OS exited successfully, to what I'm unsure as it is an OS */
       );}

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