Lines Matching refs:strtoumax
24 * @tc.desc : Test the strtoumax function to interpret the string content as a base 10 integer
31 intmax_t result = strtoumax("18737357foobar12", &p, 10);
33 t_error("%s strtoumax get result is %zu are not 18737357U\n", __func__, result);
36 t_error("%s strtoumax get is '%s' are not 'foobar12'\n", __func__, p);
42 * @tc.desc : Test the strtoumax function to interpret the string content as a base 16 integer
49 intmax_t result = strtoumax("18737357foobar12", &p, 16);
51 t_error("%s strtoumax get result is %zu are not 0x18737357fU\n", __func__, result);
54 t_error("%s strtoumax get is '%s' are not 'oobar12'\n", __func__, p);
60 * @tc.desc : Test that strtoumax interprets negative string contents as base 10 integers
67 intmax_t result = strtoumax("-18737357foobar12", &p, 10);
69 t_error("%s strtoumax get result error is %zu\n", __func__, result);
72 t_error("%s strtoumax get is '%s' are not 'foobar12'\n", __func__, p);