Add endpointer and separator args to atoid()

This commit is contained in:
Todd C. Miller
2013-08-08 06:11:52 -06:00
parent 39cbfcd406
commit fe23e7c038
7 changed files with 44 additions and 20 deletions

View File

@@ -188,7 +188,7 @@ char *fmt_string(const char *var, const char *value);
bool atobool(const char *str);
/* atoid.c */
id_t atoid(const char *str, const char **errstr);
id_t atoid(const char *str, const char *sep, char **endp, const char **errstr);
/* parse_args.c */
int parse_args(int argc, char **argv, int *nargc, char ***nargv,