KraKern

C++ Kernel
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/KraKern

base_lib.h (533B)


      1 #ifndef __LIB__
      2 # define __LIB__
      3 # include <kern_types.h>
      4 
      5 extern "C" {
      6 	u32		strlen(const char *s);
      7 	u32		strcmp(const char *s1, const char *s2);
      8 	u32		strncmp(const char *s1, const char *s2, u32 n);
      9 	u32		strcpy(char *dst, const char *src);
     10 	u32		strncpy(char *dst, const char *src, u32 n);
     11 	char	*strcat(char *s1, char *s2);
     12 	void	*memcpy(void *dst, const void *src, u32 n);
     13 	void	*memset(void *dst, int c, u32 n);
     14 	void	itoa(char *buf, u32 n, int base);
     15 	void	strreplace(char *s, char a, char b);
     16 	void	bzero(char *s);
     17 }
     18 
     19 #endif