mirror of
https://github.com/drasko/codezero.git
synced 2026-01-25 09:13:14 +01:00
Created a config directory for configuration files. Moved all absolute path variables to a projpaths.py file All scripts can now universally learn absolute paths via projpaths.py Moved the config_symbols class to the configuration.py file. Moved libs to loader since they are only referred by the loader
16 lines
200 B
C
16 lines
200 B
C
#define _USE_XOPEN
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
char *
|
|
strdup(const char *s)
|
|
{
|
|
int len = strlen(s);
|
|
char *d;
|
|
d = malloc(len);
|
|
if (d == NULL)
|
|
return NULL;
|
|
strcpy(d, s);
|
|
return d;
|
|
}
|