Advertisement
Guest User

Untitled

a guest
Sep 18th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(int argc, char **argv) {
  5.     char buf[128];
  6.    
  7.     if(argc < 2) return 1;
  8.    
  9.     strcpy(buf, argv[1]);
  10.  
  11.     printf("%s\n", buf);   
  12.  
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement