Just testing c and makefiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
313 B

  1. #include <stdio.h>
  2. char* testcprod(char *name) ;
  3. void
  4. main(int argc, char *argv[])
  5. {
  6. int i;
  7. if(argc == 1)
  8. printf("Usage: testcprod [ARGUMENT]...\n") ;
  9. else
  10. for(i = 1; i < argc; i++)
  11. printf("%s\n", testcprod(argv[i])) ;
  12. }
  13. char*
  14. testcprod(char *name)
  15. {
  16. return name ;
  17. }