klibc: add some helper
This commit is contained in:
parent
432d8801e1
commit
0e6a80f6e5
@ -1,6 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "stdarg.h"
|
#include "stdarg.h"
|
||||||
|
|
||||||
|
#define islower(c) (('a' <= (c)) && ((c) <= 'z'))
|
||||||
|
#define isupper(c) (('A' <= (c)) && ((c) <= 'Z'))
|
||||||
|
#define isdigit(c) (('0' <= (c)) && ((c) <= '9'))
|
||||||
|
#define isspace(c) (((c) == ' ') || ((c) == '\t') || \
|
||||||
|
((c) == '\f') || ((c) == '\n') || \
|
||||||
|
((c) == '\r') || ((c) == '\v'))
|
||||||
|
#define isprint(c) ((' ' <= (c)) && ((c) <= '~'))
|
||||||
|
|
||||||
void *memcpy(void *dest, const void *src, size_t n);
|
void *memcpy(void *dest, const void *src, size_t n);
|
||||||
void *memset(void *s, int c, size_t n);
|
void *memset(void *s, int c, size_t n);
|
||||||
char *itoa(int value, char *str, int base);
|
char *itoa(int value, char *str, int base);
|
||||||
|
Loading…
Reference in New Issue
Block a user