summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4b14c63..193148a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -81,6 +81,14 @@ char *getString(int n)
return strdup(str);
}
+int* newInt(int x)
+{
+ int *new;
+ new = malloc( sizeof(int) );
+ *new = x;
+ return new;
+}
+
void accessExistFile(const char *s)
{
if( access(s, F_OK) != 0 )