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:04

>>27
Replace output with a more sensible alternative, like printf or puts.

(Depending on what kind of arguments you're processing, look into getopt as well; that's neither here nor there, though.)

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