Add inotify example & client-server socket snippet

This commit is contained in:
eddyem
2017-02-08 20:33:33 +03:00
parent bd94cc6e8b
commit 220655233e
3 changed files with 444 additions and 1 deletions

View File

@@ -286,7 +286,7 @@ void parseargs(int *argc, char ***argv, myoption *options){
else optind = get_optind(opt, options);
}
opts = &options[optind];
if(opt == 0 && opts->has_arg == NO_ARGS) continue; // only long option changing integer flag
//if(opt == 0 && opts->has_arg == NO_ARGS) continue; // only long option changing integer flag
// now check option
if(opts->has_arg == NEED_ARG || opts->has_arg == MULT_PAR)
if(!optarg) showhelp(optind, options); // need argument