2021-12-15 10:45:40 +00:00
|
|
|
#ifndef KERNAUX_INCLUDED_LIBC
|
2021-12-20 06:17:53 +00:00
|
|
|
#define KERNAUX_INCLUDED_LIBC
|
2021-12-15 10:45:40 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
2022-01-23 18:17:03 +00:00
|
|
|
// <ctype.h>
|
|
|
|
int isdigit(int c);
|
2022-01-23 18:25:36 +00:00
|
|
|
int isspace(int c);
|
2022-01-23 18:17:03 +00:00
|
|
|
|
2022-01-23 18:41:07 +00:00
|
|
|
// <stdlib.h>
|
|
|
|
int atoi(const char *str);
|
|
|
|
|
2022-01-23 18:17:03 +00:00
|
|
|
// <string.h>
|
2022-06-06 02:23:46 +00:00
|
|
|
void *memcpy(void *dest, const void *src, size_t n);
|
|
|
|
void *memmove(void *dest, const void *src, size_t n);
|
2021-12-15 10:45:40 +00:00
|
|
|
void *memset(void *s, int c, size_t n);
|
2022-06-06 02:23:46 +00:00
|
|
|
int strcmp(const char *s1, const char *s2);
|
2021-12-15 10:45:40 +00:00
|
|
|
char *strcpy(char *dest, const char *src);
|
|
|
|
size_t strlen(const char *s);
|
2022-06-06 02:23:46 +00:00
|
|
|
int strncmp(const char *s1, const char *s2, size_t n);
|
|
|
|
char *strncpy(char *dest, const char *src, size_t n);
|
2022-01-19 11:14:46 +00:00
|
|
|
size_t strnlen(const char *s, size_t maxlen);
|
2022-06-06 02:23:46 +00:00
|
|
|
char *strstr(const char *haystack, const char *needle);
|
2021-12-15 10:45:40 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|