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
commit6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch)
treecfd2e2baa05c3196f2caacbb63c32e1df40bc3de /contrib/libs/libc_compat/string.h
parent7489e4682331202b9c7d863c0898eb83d7b12c2b (diff)
downloadydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 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 ad74d9a630..52e3dc9ddf 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