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

Function msStringParseInteger

mapwcs20.c:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67/************************************************************************/
68
69static int msStringParseInteger(const char *string, int *dest)
70{
71 char *parse_check;
72 *dest = (int)strtol(string, &parse_check, 0);
73 if(parse_check == string)
74 {
75 return MS_FAILURE;
76 }
77 else if(parse_check - strlen(string) != string)
78 {
79 return MS_DONE;
80 }
81 return MS_SUCCESS;
82}
83
84/************************************************************************/
85/* msStringParseDouble() */

Calls

no outgoing calls

Tested by

no test coverage detected