Lines Matching defs:str
360 static long strtou32( char *str)
365 if (str[0]=='0' && (str[1]=='x' || str[1]=='X')) {
367 str+=2;
369 long ret_val = strtol(str, &endptr, base);
371 else if (endptr && (*endptr!='\0'||endptr == str)) return -1;
376 static int striptovar( char *str, void *var)
379 if(!str) error_exit("NULL address string.");
380 addr = inet_addr(str);
381 if(addr == -1) error_exit("Wrong address %s.",str );
387 static int strtoopt( char *str, uint8_t optonly)
395 if (!*str) return 0;
396 option = strtok((char*)str, ":");
860 static uint8_t *dhcpc_addstropt(uint8_t *optptr, uint8_t opcode, char* str, int len)
864 memcpy(optptr, str, len);