Import LibreSSL v2.4.2 to vendor branch
[dragonfly.git] / crypto / libressl / crypto / o_str.c
1 /* $OpenBSD: o_str.c,v 1.8 2014/06/12 15:49:27 deraadt Exp $ */
2 /*
3  * Written by Theo de Raadt.  Public domain.
4  */
5
6 #include <string.h>
7
8 int OPENSSL_strcasecmp(const char *str1, const char *str2);
9 int OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n);
10
11 int
12 OPENSSL_strncasecmp(const char *str1, const char *str2, size_t n)
13 {
14         return strncasecmp(str1, str2, n);
15 }
16
17 int
18 OPENSSL_strcasecmp(const char *str1, const char *str2)
19 {
20         return strcasecmp(str1, str2);
21 }