All pastes #708097 Raw Edit

Someone

public c v1 · immutable
#708097 ·published 2007-09-23 15:57 UTC
rendered paste body
if(argv[1] != 0) {     if(strcmp(argv[1], "-cp") == 0 && argv[2] != 0 && argv[3] != 0) {          filecopy(argv[2], argv[3]);          printf("\nDone. The file should now be copied to the destination you specified.\n");     } else if(strcmp(argv[1], "-cp") == 0 && argv[2] == 0 && argv[3] == 0) {          printf("\nusage: filex -cp [src] [dst]\n");     } else if(strcmp(argv[1], "-lock") == 0 && argv[2] != 0 && argv[3] != 0) {          filelock(argv[2], argv[3]);          printf("\nDone. The file at the destination you have specified should now be locked.\n");     } else if(strcmp(argv[1], "-lock") == 0 && argv[2] == 0 && argv[3] == 0) {          printf("\nusage: filex -lock [src] [dst]\n");     }} else if (argv[1] == 0) {     printf("\n Invalid use of filex. Type --help for a list of possible commands.\n");}