From 076ee4208cb811170de35cf6f391359bda7fb8d2 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 9 Nov 1997 01:00:06 +0000 Subject: [PATCH] (parse_something): ignore white-space and ',' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3828 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/parse_units.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/roken/parse_units.c b/lib/roken/parse_units.c index 0120af608..738e65458 100644 --- a/lib/roken/parse_units.c +++ b/lib/roken/parse_units.c @@ -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)