Added getopt to undpu and -c arguement for output to stdout #13

Manually merged
silverwizard merged 1 commits from undpugetopt into master 5 years ago
  1. 2
      undpu.c

@ -58,7 +58,7 @@ int main (int argc, char **argv){
}
}
if(!out){
strncpy(output,argv[0],strlen(argv[0])-4);
strlcpy(output,argv[0],strlen(argv[0])-4);
if((joe = fopen(output,"w"))==NULL){
fputs("Ummm, the output file doesn't work.\n",stderr);
return EXIT_FAILURE;

Loading…
Cancel
Save