diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-04-30 18:56:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-30 21:08:51 +0900 |
commit | 7e4831d2963e9c239e91cae45a3409b039f003cf (patch) | |
tree | 7aa69977128cff99a124ec78bd4db18e26751e07 /src/basic/strxcpyx.h | |
parent | 961189af2a6969bddae4d3759defff5027b5701a (diff) | |
download | systemd-7e4831d2963e9c239e91cae45a3409b039f003cf.tar.gz |
util: introduce strnpcpy() and strnscpy()
Diffstat (limited to 'src/basic/strxcpyx.h')
-rw-r--r-- | src/basic/strxcpyx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/strxcpyx.h b/src/basic/strxcpyx.h index 0f2b7499ba..9b66841246 100644 --- a/src/basic/strxcpyx.h +++ b/src/basic/strxcpyx.h @@ -5,8 +5,10 @@ #include "macro.h" +size_t strnpcpy(char **dest, size_t size, const char *src, size_t len); size_t strpcpy(char **dest, size_t size, const char *src); size_t strpcpyf(char **dest, size_t size, const char *src, ...) _printf_(3, 4); size_t strpcpyl(char **dest, size_t size, const char *src, ...) _sentinel_; +size_t strnscpy(char *dest, size_t size, const char *src, size_t len); size_t strscpy(char *dest, size_t size, const char *src); size_t strscpyl(char *dest, size_t size, const char *src, ...) _sentinel_; |