Go to the source code of this file.
ncp_getopt - option parser : name of the caller, for error messages : the options string : an array of &struct option entries controlling parser operations : output; will contain the current option : output; will contain the value (if one exists) : output; may be NULL; will be overwritten with the integer value of the current argument.
Helper to parse options on the format used by mount ("a=b,c=d,e,f"). Returns opts->val if a matching entry in the 'opts' array is found, 0 when no more tokens are found, -1 if an error is encountered.
Definition at line 26 of file getopt.c.