Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-parse-util.c552 TEST(safe_atoux16) { in TEST() argument
556 r = safe_atoux16("1234", &l); in TEST()
560 r = safe_atoux16("abcd", &l); in TEST()
564 r = safe_atoux16(" 1234", &l); in TEST()
568 r = safe_atoux16("12345", &l); in TEST()
571 r = safe_atoux16("-1", &l); in TEST()
574 r = safe_atoux16(" -1", &l); in TEST()
577 r = safe_atoux16("0b1", &l); in TEST()
581 r = safe_atoux16("0o70", &l); in TEST()
584 r = safe_atoux16("junk", &l); in TEST()
[all …]
/systemd-251/src/udev/
Dudev-builtin-input_id.c136 (void) safe_atoux16(v, &id.bustype); in get_input_id()
138 (void) safe_atoux16(v, &id.vendor); in get_input_id()
140 (void) safe_atoux16(v, &id.product); in get_input_id()
142 (void) safe_atoux16(v, &id.version); in get_input_id()
Dudev-builtin-hwdb.c57 if (safe_atoux16(v, &vn) < 0) in modalias_usb()
59 if (safe_atoux16(p, &pn) < 0) in modalias_usb()
/systemd-251/src/basic/
Dparse-util.h47 static inline int safe_atoux16(const char *s, uint16_t *ret) { in safe_atoux16() function