XenevaOS
Loading...
Searching...
No Matches
clib.h
Go to the documentation of this file.
1
30#ifndef __CLIB_H__
31#define __CLIB_H__
32
33#include <stdint.h>
34//#include <stddef.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40void* memset(void* targ, uint8_t val, uint32_t len);
41void* memcpy(void* targ, void* src, uint32_t len);
42size_t strlen(const char* s);
43
44#ifdef __cplusplus
45}
46#endif
47
48// extern void memset(void* targ, uint8_t val, uint32_t len);
49// extern void memcpy(void* targ, void* src, uint32_t len);
50extern wchar_t* wstrchr(wchar_t* s, int c);
51extern int wstrlen(wchar_t* s);
52extern uint32_t wstrsize(wchar_t* s);
53extern int to_upper(int c);
54extern int to_lower(int c);
55extern int is_digit(int c);
56extern char* sztoa(size_t value, char* str, int base);
57// extern size_t strlen(const char* s);
58#endif
uint32_t wstrsize(wchar_t *s)
Definition clib.cpp:84
void memset(void *targ, uint8_t val, uint32_t len)
Definition clib.cpp:34
int to_lower(int c)
Definition clib.cpp:94
void memcpy(void *targ, void *src, uint32_t len)
Definition clib.cpp:58
wchar_t * wstrchr(wchar_t *s, int c)
Definition clib.cpp:66
char * sztoa(std::size_t value, char *str, int base)
Definition clib.cpp:107
int is_digit(int c)
Definition clib.cpp:100
int wstrlen(wchar_t *s)
Definition clib.cpp:77
std::size_t strlen(const char *s)
Definition utclib.c:379
int to_upper(int c)
Definition clib.cpp:88
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161