Home
last modified time | relevance | path

Searched refs:safe_atoi16 (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/test/
Dtest-parse-util.c505 TEST(safe_atoi16) { in TEST() argument
509 r = safe_atoi16("-12345", &l); in TEST()
513 r = safe_atoi16(" -12345", &l); in TEST()
517 r = safe_atoi16("32767", &l); in TEST()
521 r = safe_atoi16(" 32767", &l); in TEST()
525 r = safe_atoi16("0o11", &l); in TEST()
529 r = safe_atoi16("0B110", &l); in TEST()
533 r = safe_atoi16("36536", &l); in TEST()
536 r = safe_atoi16("-32769", &l); in TEST()
539 r = safe_atoi16("junk", &l); in TEST()
[all …]
/systemd-251/src/basic/
Dparse-util.h51 int safe_atoi16(const char *s, int16_t *ret);
Dparse-util.c545 int safe_atoi16(const char *s, int16_t *ret) { in safe_atoi16() function
/systemd-251/src/busctl/
Dbusctl.c1464 r = safe_atoi16(v, &z); in message_append_cmdline()