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
34#include <stdint.h>
35//#include <stddef.h>
36
37#ifdef __cplusplus
38extern "C"
39{
40#endif
41
42void* memset(void* targ, uint8_t val, uint32_t len);
43void* memcpy(void* targ, void* src, uint32_t len);
44size_t strlen(const char* s);
45
46#ifdef __cplusplus
47}
48#endif
49
50
51// extern void memset(void* targ, uint8_t val, uint32_t len);
52// extern void memcpy(void* targ, void* src, uint32_t len);
53extern wchar_t* wstrchr(wchar_t* s, int c);
54extern int wstrlen(wchar_t* s);
55extern uint32_t wstrsize(wchar_t* s);
56extern int to_upper(int c);
57extern int to_lower(int c);
58extern int is_digit(int c);
59extern char* sztoa(size_t value, char* str, int base);
60// extern size_t strlen(const char* s);
61#endif
62
63
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