Home
last modified time | relevance | path

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

/systemd-251/src/shared/
Ddevice-nodes.c19 int encode_devnode_name(const char *str, char *str_enc, size_t len) { in encode_devnode_name() argument
22 if (!str || !str_enc) in encode_devnode_name()
34 memcpy(&str_enc[j], &str[i], seqlen); in encode_devnode_name()
43 sprintf(&str_enc[j], "\\x%02x", (unsigned char) str[i]); in encode_devnode_name()
50 str_enc[j] = str[i]; in encode_devnode_name()
58 str_enc[j] = '\0'; in encode_devnode_name()
Ddevice-nodes.h6 int encode_devnode_name(const char *str, char *str_enc, size_t len);
/systemd-251/src/libudev/
Dlibudev-util.c25 _public_ int udev_util_encode_string(const char *str, char *str_enc, size_t len) { in udev_util_encode_string() argument
26 return encode_devnode_name(str, str_enc, len); in udev_util_encode_string()
Dlibudev.h185 int udev_util_encode_string(const char *str, char *str_enc, size_t len);