MCPcopy Index your code
hub / github.com/MapServer/MapServer / getNumeric

Function getNumeric

mapserv.c:165–176  ·  view source on GitHub ↗

** Converts a string (e.g. form parameter) to a double, first checking the format against ** a regular expression. Dumps an error immediately if the format test fails. */

Source from the content-addressed store, hash-verified

163** a regular expression. Dumps an error immediately if the format test fails.
164*/
165static double getNumeric(char *s)
166{
167 char *err;
168 double rv;
169
170 rv = strtod(s, &err);
171 if (*err) {
172 msSetError(MS_TYPEERR, NULL, "getNumeric()");
173 writeError();
174 }
175 return rv;
176}
177
178
179

Callers 1

loadFormFunction · 0.85

Calls 2

msSetErrorFunction · 0.85
writeErrorFunction · 0.85

Tested by

no test coverage detected