matos/core/klibc.h

19 lines
674 B
C
Raw Normal View History

2018-07-20 15:41:58 +02:00
#pragma once
#include "stdarg.h"
2018-07-20 15:41:58 +02:00
2018-11-22 17:41:18 +01:00
#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) <= '~'))
2019-04-15 23:19:14 +02:00
int memcmp(const void *s1, const void *s2, size_t n);
2018-11-16 10:34:03 +01:00
void *memcpy(void *dest, const void *src, size_t n);
2018-08-09 22:19:34 +02:00
void *memset(void *s, int c, size_t n);
2018-11-16 10:34:03 +01:00
char *itoa(int value, char *str, int base);
2018-11-20 17:03:57 +01:00
void reverse(char s[]);
int strlen(char s[]);
int strcmp(char s1[], char s2[]);