2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are met:
|
|
|
|
*
|
|
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
|
|
* list of conditions and the following disclaimer.
|
|
|
|
*
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
|
|
* and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2018-10-23 10:12:50 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <sys/types.h>
|
2018-10-23 10:12:50 +02:00
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
__BEGIN_DECLS
|
2018-10-23 10:12:50 +02:00
|
|
|
|
|
|
|
size_t strlen(const char*);
|
2020-01-16 22:11:05 +01:00
|
|
|
size_t strnlen(const char*, size_t maxlen);
|
2018-10-26 13:32:13 +02:00
|
|
|
int strcmp(const char*, const char*);
|
2018-11-05 18:16:00 +01:00
|
|
|
int strncmp(const char*, const char*, size_t);
|
2019-05-16 09:27:42 +02:00
|
|
|
int strcasecmp(const char*, const char*);
|
|
|
|
int strncasecmp(const char*, const char*, size_t);
|
2018-10-28 09:36:21 +01:00
|
|
|
int memcmp(const void*, const void*, size_t);
|
2018-11-17 15:56:09 +01:00
|
|
|
void* memcpy(void*, const void*, size_t);
|
|
|
|
void* memmove(void*, const void*, size_t);
|
2019-02-03 04:32:31 +01:00
|
|
|
void* memchr(const void*, int c, size_t);
|
2018-11-05 18:16:00 +01:00
|
|
|
void bzero(void*, size_t);
|
|
|
|
void bcopy(const void*, void*, size_t);
|
2018-10-31 17:50:43 +01:00
|
|
|
void* memset(void*, int, size_t);
|
2019-02-03 16:11:28 +01:00
|
|
|
char* strdup(const char*);
|
|
|
|
char* strndup(const char*, size_t);
|
2018-10-31 10:14:56 +01:00
|
|
|
char* strcpy(char* dest, const char* src);
|
|
|
|
char* strncpy(char* dest, const char* src, size_t);
|
|
|
|
char* strchr(const char*, int c);
|
2020-02-15 10:58:36 +13:00
|
|
|
char* strchrnul(const char*, int c);
|
2018-11-11 20:42:41 +01:00
|
|
|
char* strstr(const char* haystack, const char* needle);
|
2018-10-31 17:50:43 +01:00
|
|
|
char* strrchr(const char*, int c);
|
2019-05-28 11:53:16 +02:00
|
|
|
char* strcat(char* dest, const char* src);
|
|
|
|
char* strncat(char* dest, const char* src, size_t);
|
2018-10-31 17:50:43 +01:00
|
|
|
size_t strspn(const char*, const char* accept);
|
|
|
|
size_t strcspn(const char*, const char* reject);
|
2018-11-05 14:50:41 +01:00
|
|
|
char* strerror(int errnum);
|
2018-11-06 15:45:16 +01:00
|
|
|
char* strsignal(int signum);
|
2019-02-08 02:38:21 +01:00
|
|
|
char* strpbrk(const char*, const char* accept);
|
2019-11-10 16:24:52 +01:00
|
|
|
char* strtok_r(char* str, const char* delim, char** saved_str);
|
2019-05-28 11:53:16 +02:00
|
|
|
char* strtok(char* str, const char* delim);
|
|
|
|
int strcoll(const char* s1, const char* s2);
|
|
|
|
size_t strxfrm(char* dest, const char* src, size_t n);
|
2018-10-23 10:12:50 +02:00
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
__END_DECLS
|