Nucleus
Barry Object manager and heap in kernel library 08afe80 (3 years, 1 month ago)#ifndef _NUCLEUS_LIB_H #define _NUCLEUS_LIB_H #include <stdarg.h> #include <stddef.h> void *kmalloc(size_t size); void kfree(void *addr); int vsprintf(char *buf, const char *fmt, va_list args); int sprintf(char *buf, const char *fmt, ...); void *memset(void *dest, int byte, size_t len); int memcmp(void *s1, void *s2, size_t n); void *memcpy(void *dest, const void *src, size_t n); int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t n); char *strcpy(char *dest, const char *src); char *strncpy(char *dest, const char *src, size_t n); size_t strlen(const char *str); size_t strnlen(const char *str, size_t n); #endif