:: limine / common / lib / libc.h 1.0 KB raw

1
#ifndef LIB__LIBC_H__
2
#define LIB__LIBC_H__
3
4
#include <stddef.h>
5
#include <stdbool.h>
6
7
bool isprint(int c);
8
bool isspace(int c);
9
bool isalpha(int c);
10
bool isdigit(int c);
11
12
int toupper(int c);
13
int tolower(int c);
14
15
int abs(int i);
16
17
void *memset(void *, int, size_t);
18
void *memcpy(void *restrict, const void *restrict, size_t);
19
int memcmp(const void *, const void *, size_t);
20
void *memmove(void *, const void *, size_t);
21
22
#define memset __builtin_memset
23
#define memcpy __builtin_memcpy
24
#define memcmp __builtin_memcmp
25
#define memmove __builtin_memmove
26
27
void *memchr(const void *, int, size_t);
28
29
char *strcpy(char *, const char *);
30
char *strncpy(char *, const char *, size_t);
31
char *strchr(const char *, int);
32
char *strrchr(const char *, int);
33
size_t strlen(const char *);
34
size_t strnlen(const char *, size_t);
35
int strcmp(const char *, const char *);
36
int strcasecmp(const char *, const char *);
37
int strncmp(const char *, const char *, size_t);
38
int strncasecmp(const char *, const char *, size_t);
39
int inet_pton(const char *src, void *dst);
40
char *strdup(const char *);
41
42
#endif
tab: 248 wrap: offon