/* * program in which arg 1 is printed as a format string */ #include #include /* * here's the main program -- simple */ int main(int argc, char * argv[]) { char *s = "See this?"; int a = 0xdeadbeef; int b = 0xcafefeed; /* check for the right number of arguments */ if (argc != 2){ fprintf(stderr, "%s: need a format string as argument\n", argv[0]); return(1); } /* now process it! */ printf(argv[1]); printf("\n"); /* done! */ return(0); }