diff options
| author | cgyurgyik <gyurgyikcp@gmail.com> | 2020-06-19 16:05:26 -0400 |
|---|---|---|
| committer | cgyurgyik <gyurgyikcp@gmail.com> | 2020-06-19 16:09:44 -0400 |
| commit | 05e1612c4345353680752bad23eb52eba3ab51a3 (patch) | |
| tree | 82748e5edde632b609df4dccd6b04eb6e012ec0f /libc/src/string/strcmp.h | |
| parent | af4f2eb476361e6da42d6f66a68cada763625c32 (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.h | 18 |
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 |
