x-alloc class function prototypes

This commit is contained in:
2026-01-15 12:51:29 -05:00
parent 507c274887
commit eab45f3f58
2 changed files with 47 additions and 1 deletions

32
src/nickel/xalloc.c Normal file
View File

@@ -0,0 +1,32 @@
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "nickel/xalloc.h"
void* ni_xmalloc(size_t size) {
}
void ni_free(void* ptr) {
}
void* ni_xcalloc(size_t nmemb,size_t size) {
}
void* ni_xrealloc(void* ptr, size_t size) {
}
char* ni_xstrdup(const char *s) {
}
char* ni_xstrndup(const char s[], size_t n) {
}