1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00

str[sp]cpyl: add __attribute__ ((sentinel))

This commit is contained in:
Kay Sievers 2009-06-01 21:10:29 +02:00
parent 82c785e5dc
commit b61f48a0e8

View File

@ -176,9 +176,9 @@ size_t util_path_encode(const char *src, char *dest, size_t size);
size_t util_path_decode(char *s); size_t util_path_decode(char *s);
void util_remove_trailing_chars(char *path, char c); void util_remove_trailing_chars(char *path, char c);
size_t util_strpcpy(char **dest, size_t size, const char *src); size_t util_strpcpy(char **dest, size_t size, const char *src);
size_t util_strpcpyl(char **dest, size_t size, const char *src, ...); size_t util_strpcpyl(char **dest, size_t size, const char *src, ...) __attribute__ ((sentinel));
size_t util_strscpy(char *dest, size_t size, const char *src); size_t util_strscpy(char *dest, size_t size, const char *src);
size_t util_strscpyl(char *dest, size_t size, const char *src, ...); size_t util_strscpyl(char *dest, size_t size, const char *src, ...) __attribute__ ((sentinel));
int udev_util_replace_whitespace(const char *str, char *to, size_t len); int udev_util_replace_whitespace(const char *str, char *to, size_t len);
int udev_util_replace_chars(char *str, const char *white); int udev_util_replace_chars(char *str, const char *white);
int udev_util_encode_string(const char *str, char *str_enc, size_t len); int udev_util_encode_string(const char *str, char *str_enc, size_t len);