mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
initial commit
This commit is contained in:
24
libpcp/mem.h
Normal file
24
libpcp/mem.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _HAVE_PCP_MEM
|
||||
#define _HAVE_PCP_MEM
|
||||
|
||||
#include <strings.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <err.h>
|
||||
|
||||
// simple malloc() wrapper
|
||||
// behaves like calloc(), which
|
||||
// I don't have here.
|
||||
//
|
||||
// exits if there's no more memory
|
||||
// available.
|
||||
void *ucmalloc(size_t s);
|
||||
|
||||
// the same but it fills the pointer with random values
|
||||
void *urmalloc(size_t s);
|
||||
|
||||
// dito.
|
||||
void *ucfree(void *ptr);
|
||||
|
||||
|
||||
#endif // _HAVE_PCP_MEM
|
||||
Reference in New Issue
Block a user