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

HELP please

Name: Anonymous 2010-07-06 12:35

what is wrong with my program? its supposed to process arguments but it doesnt.
void output(char *fuckyou);
int main(int argc, char **argv) {
  int i;
  for(i = 0; i < argc; i++) {
    output("SHIT");
  }
}

Name: Anonymous 2010-07-06 14:01

>>24
No, there is nothing before that loop.
Parameter procession is the very first thing this program is supposed to do.

The functions after the loop work fine tough. And GCC does not complain about anything in this function.

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