summaryrefslogtreecommitdiff
path: root/libc/src/string/strcmp.h
diff options
context:
space:
mode:
authorcgyurgyik <gyurgyikcp@gmail.com>2020-06-19 16:05:26 -0400
committercgyurgyik <gyurgyikcp@gmail.com>2020-06-19 16:09:44 -0400
commit05e1612c4345353680752bad23eb52eba3ab51a3 (patch)
tree82748e5edde632b609df4dccd6b04eb6e012ec0f /libc/src/string/strcmp.h
parentaf4f2eb476361e6da42d6f66a68cada763625c32 (diff)
[libc] This adds the strcmp (string compare) implementation.
Reviewed-by: sivachandra Differential Revision: https://reviews.llvm.org/D82134
Diffstat (limited to 'libc/src/string/strcmp.h')
-rw-r--r--libc/src/string/strcmp.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libc/src/string/strcmp.h b/libc/src/string/strcmp.h
new file mode 100644
index 000000000000..a45f2d5ba8e5
--- /dev/null
+++ b/libc/src/string/strcmp.h
@@ -0,0 +1,18 @@
+//===-- Implementation header for strcmp ------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_STRING_STRCMP_H
+#define LLVM_LIBC_SRC_STRING_STRCMP_H
+
+namespace __llvm_libc {
+
+int strcmp(const char *left, const char *right);
+
+} // namespace __llvm_libc
+
+#endif // LLVM_LIBC_SRC_STRING_STRCMP_H