Lines Matching refs:str
222 * @param str - A char *, pointing to a string representation of the
226 static void copy_bool (char *str, void * val)
228 if ( !strcmp(str, "1") ||
229 !strcasecmp(str, "yes") ||
230 !strcasecmp(str,"on"))
236 static void copy_int(char *str, void * val) {
237 *((int *)val) = atoi(str);
239 static void copy_string(char *str, void * val) {
240 strncpy((char *)val, str , CONF_PATH_LEN );
242 static void init_int(char *str, void * val) {
243 *((int *)val) = *((int *)str);