diff options
author | agalakhov <agalakhov@yandex-team.ru> | 2022-02-10 16:49:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:51 +0300 |
commit | 61a83e458f803c69f5d9d74e5d716cb95b3f2225 (patch) | |
tree | c63ac6b8d61f5c83d025f4b0863f3a2235c6fa39 /util/generic | |
parent | 9622b1b611a91d945eb942671e7ad62d44878b66 (diff) | |
download | ydb-61a83e458f803c69f5d9d74e5d716cb95b3f2225.tar.gz |
Restoring authorship annotation for <agalakhov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/strfcpy.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/strfcpy.h b/util/generic/strfcpy.h index 8a95bc3df2..c71ea10898 100644 --- a/util/generic/strfcpy.h +++ b/util/generic/strfcpy.h @@ -1,17 +1,17 @@ #pragma once - -/* + +/* * strfcpy is a faster version of strlcpy(). * It returns void thus does not wastes time computing * (most likely, unneeded) strlen(str) - * + * * Comparison with other copying functions: - * strcpy() - buffer overflow ready - * strncpy() - wastes time filling exactly n bytes with 0 - * strlcpy() - wastes time searching for the length of src - * memcpy() - wastes time copying exactly n bytes even if the string is shorter - */ - -#include <stddef.h> - + * strcpy() - buffer overflow ready + * strncpy() - wastes time filling exactly n bytes with 0 + * strlcpy() - wastes time searching for the length of src + * memcpy() - wastes time copying exactly n bytes even if the string is shorter + */ + +#include <stddef.h> + void strfcpy(char* dst, const char* src, size_t n); |