FENIX_libc/include/string.h

63 lines
1.8 KiB
C
Raw Normal View History

2020-11-18 09:41:58 +00:00
/*
* <string.h> - string handling
*
* This header is a part of the FENIX C Library and is free software.
* You can redistribute and/or modify it subject to the terms of the
* Clumsy Wolf Public License v4. For more details, see the file COPYING.
*
* The FENIX C Library is distributed WITH NO WARRANTY WHATSOEVER. See
* The CWPL for more details.
*/
#ifndef _STRING_H
#define _STRING_H
#include <sys/cdefs.h>
2020-12-01 23:32:49 +00:00
#include <types/size_t.h>
2020-12-16 23:39:56 +00:00
#ifdef _POSIX_C_SOURCE
2020-12-01 23:32:49 +00:00
#include <types/locale_t.h>
2020-12-16 23:39:56 +00:00
#endif
2020-12-01 23:32:49 +00:00
#ifndef NULL
#define NULL (void *) 0
#endif
2020-11-18 09:41:58 +00:00
/* Copying Functions (ISO C Std. 7.24.2) */
void * memcpy(void * __restrict, const void * __restrict, size_t);
void * memmove(void *, const void *, size_t);
2020-12-16 23:39:56 +00:00
char * strcpy(char * restrict, const char * restrict);
char * strncpy(char * restrict, const char * restrict, size_t);
2020-11-18 09:41:58 +00:00
/* Concatenation Functions (ISO C Std. 7.24.3) */
char * strcat(char * restrict, const char * restrict);
2020-12-16 23:39:56 +00:00
char * strncat(char * restrict, const char * restrict, size_t);
2020-11-18 09:41:58 +00:00
/* Comparison Functions (ISO C Std. 7.24.4) */
int memcmp(const void *, const void *, size_t);
int strcmp(const char *, const char *);
2020-12-16 23:39:56 +00:00
int strncmp(const char *, const char *, size_t);
int strcoll(const char *, const char *);
size_t strxfrm(char * restrict, const char * restrict, size_t);
2020-11-18 09:41:58 +00:00
/* Search Functions (ISO C Std. 7.24.5) */
2020-12-16 23:39:56 +00:00
void * memchr(const void *, int, size_t);
char * strchr(const char *, int);
2020-11-18 09:41:58 +00:00
size_t strcspn(const char *, const char *);
2020-12-16 23:39:56 +00:00
char * strpbrk(const char *, const char *);
char * strrchr(const char *, int);
size_t strspn(const char *, const char *);
char * strstr(const char *, const char *);
2020-11-18 09:41:58 +00:00
char * strtok(char * restrict, char * restrict);
/* Miscellaneous Functions (ISO C Std. 7.24.6) */
void * memset(void *, int, size_t);
2020-12-16 23:39:56 +00:00
char * strerror(int);
size_t strlen(const char *);
#endif