** Helper functions to convert from strings to other types or objects. */
| 56 | ** Helper functions to convert from strings to other types or objects. |
| 57 | */ |
| 58 | static 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 | |
| 65 | static int bindDoubleAttribute(double *attribute, char *value) |
| 66 | { |
no test coverage detected