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 | 8e39421d5f7b28ca12255c9a4fd8a6c593592588 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic | |
parent | 61a83e458f803c69f5d9d74e5d716cb95b3f2225 (diff) | |
download | ydb-8e39421d5f7b28ca12255c9a4fd8a6c593592588.tar.gz |
Restoring authorship annotation for <agalakhov@yandex-team.ru>. Commit 2 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 c71ea10898..8a95bc3df2 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); |