aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/string.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /contrib/libs/libc_compat/string.h
parent6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff)
downloadydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/libc_compat/string.h')
-rw-r--r--contrib/libs/libc_compat/string.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/contrib/libs/libc_compat/string.h b/contrib/libs/libc_compat/string.h
index 52e3dc9ddf..ad74d9a630 100644
--- a/contrib/libs/libc_compat/string.h
+++ b/contrib/libs/libc_compat/string.h
@@ -1,44 +1,44 @@
#pragma once
#include <stddef.h>
-#include <ctype.h>
-#include <string.h>
+#include <ctype.h>
+#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
-#if !defined(__FreeBSD__) && !defined(__APPLE__)
+#if !defined(__FreeBSD__) && !defined(__APPLE__)
size_t strlcpy(char* dst, const char* src, size_t len);
size_t strlcat(char* dst, const char* src, size_t len);
-#endif
+#endif
#if (!defined(__linux__) && !defined(__FreeBSD__) && !defined(__APPLE__)) || (defined(__ANDROID__) && __ANDROID_API__ < 21)
-char* stpcpy(char* dst, const char* src);
-#endif
-
-#if !defined(_MSC_VER)
-
-#define stricmp strcasecmp
-#define strnicmp strncasecmp
-
-char* strlwr(char*);
-char* strupr(char*);
-
-#else // _MSC_VER
-
-#define strcasecmp stricmp
-#define strncasecmp strnicmp
-
-char* strcasestr(const char* s1, const char* s2);
-char* strsep(char** stringp, const char* delim);
-
-#endif // _MSC_VER
-
-#if defined(_MSC_VER) || defined(__APPLE__)
-void* memrchr(const void* s, int c, size_t n);
-#endif
-
+char* stpcpy(char* dst, const char* src);
+#endif
+
+#if !defined(_MSC_VER)
+
+#define stricmp strcasecmp
+#define strnicmp strncasecmp
+
+char* strlwr(char*);
+char* strupr(char*);
+
+#else // _MSC_VER
+
+#define strcasecmp stricmp
+#define strncasecmp strnicmp
+
+char* strcasestr(const char* s1, const char* s2);
+char* strsep(char** stringp, const char* delim);
+
+#endif // _MSC_VER
+
+#if defined(_MSC_VER) || defined(__APPLE__)
+void* memrchr(const void* s, int c, size_t n);
+#endif
+
#ifdef __cplusplus
} //extern "C"
#endif