Information hiding.
This commit is contained in:
parent
4b51b06b73
commit
6e67222206
2 changed files with 2 additions and 4 deletions
4
misc.c
4
misc.c
|
@ -10,7 +10,7 @@
|
|||
#include "advent.h"
|
||||
#include "dungeon.h"
|
||||
|
||||
char* xstrdup(const char* s)
|
||||
static char* xstrdup(const char* s)
|
||||
{
|
||||
char* ptr = strdup(s);
|
||||
if (ptr == NULL) {
|
||||
|
@ -22,7 +22,7 @@ char* xstrdup(const char* s)
|
|||
return (ptr);
|
||||
}
|
||||
|
||||
void* xmalloc(size_t size)
|
||||
static void* xmalloc(size_t size)
|
||||
{
|
||||
void* ptr = malloc(size);
|
||||
if (ptr == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue