(parse_something): ignore white-space and ','

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3828 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-09 01:00:06 +00:00
parent f0c845a5fa
commit 076ee4208c

View File

@@ -84,6 +84,9 @@ parse_something (const char *s, const struct units *units,
size_t u_len;
unsigned partial;
while(isspace(*p) || *p == ',')
++p;
val = strtod (p, &next); /* strtol(p, &next, 0); */
if (val == 0 && p == next)
if(accept_no_val_p)