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

Function bindIntegerAttribute

maputil.c:58–63  ·  view source on GitHub ↗

** Helper functions to convert from strings to other types or objects. */

Source from the content-addressed store, hash-verified

56** Helper functions to convert from strings to other types or objects.
57*/
58static int bindIntegerAttribute(int *attribute, char *value)
59{
60 if(!value || strlen(value) == 0) return MS_FAILURE;
61 *attribute = MS_NINT(atof(value)); /*use atof instead of atoi as a fix for bug 2394*/
62 return MS_SUCCESS;
63}
64
65static int bindDoubleAttribute(double *attribute, char *value)
66{

Callers 2

bindStyleFunction · 0.85
msBindLayerToShapeFunction · 0.85

Calls 1

MS_NINTFunction · 0.85

Tested by

no test coverage detected