diff options
Diffstat (limited to 'src/dynamicInt.c')
| -rw-r--r-- | src/dynamicInt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dynamicInt.c b/src/dynamicInt.c new file mode 100644 index 0000000..3845d2f --- /dev/null +++ b/src/dynamicInt.c @@ -0,0 +1,11 @@ + +#include <stdlib.h> +#include "dynamicInt.h" + +int* newInt(int x) +{ + int *new; + new = malloc( sizeof(int) ); + *new = x; + return new; +} |