#include <h/utils.h>
#include <stdlib.h>
+/*
+ * Safely call malloc
+ */
void *
mh_xmalloc(size_t size)
{
return memory;
}
+/*
+ * Safely call realloc
+ */
void *
mh_xrealloc(void *ptr, size_t size)
{
return memory;
}
+
+/*
+ * Return the present working directory, if the current directory does not
+ * exist, or is too long, make / the pwd.
+ */
char *
pwd(void)
{