Lines Matching refs:inp
17 static int strtomicro(char *inp, char units, int32_t *val) in strtomicro() argument
22 len = strlen(inp); in strtomicro()
28 if (tolower(inp[len - 1]) != units) { in strtomicro()
32 if ((len > 2) && (inp[len - 2] == 'u')) { in strtomicro()
35 } else if ((len > 2) && (inp[len - 2] == 'm')) { in strtomicro()
38 } else if (isdigit((unsigned char)inp[len - 2]) > 0) { in strtomicro()
46 if (inp[0] == '-') { in strtomicro()
49 } else if (inp[0] == '+') { in strtomicro()
58 if (isdigit((unsigned char)inp[i]) > 0) { in strtomicro()
60 (int32_t)(inp[i] - '0') * mult / decdiv; in strtomicro()
64 } else if (inp[i] == '.') { in strtomicro()