summaryrefslogtreecommitdiff
path: root/include/string.h
blob: 5e06af7e6fe3d67d17a8414fd8a048e957074936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _STRING_H
#define _STRING_H

#include <stddef.h>
#define NULL ((void*)0)

extern void *memcpy(void *__restrict, const void *__restrict, size_t);
void *memmove(void *, const void *, size_t);
void *memset(void *, int, size_t);
int memcmp(const void *, const void *, size_t);
void *memchr(const void *, int, size_t);

char *strchr(const char *, int);
char *strrchr(const char*, int);

//size_t strlen(const char *);
#define strlen(s) __builtin_strlen(s)
#define strnlen(s, n) __builtin_strnlen(s, n)
#endif /* _STRING_H */