Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <windows.h>
  2.  
  3. void process(char *arg)
  4. {
  5.   printf("Arg is %s\n", arg);
  6. }
  7.  
  8. void foo(char *arg)
  9. {
  10. char buf[14];
  11.  
  12.     strcpy(buf, arg);
  13.     process(arg);
  14. }
  15.  
  16. int main(int argc, char **argv)
  17. {
  18.   if (argc > 1)
  19.     foo(argv[1]);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement