Advertisement
Guest User

Untitled

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