diff options
Diffstat (limited to 'getline-test.c')
-rw-r--r-- | getline-test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/getline-test.c b/getline-test.c new file mode 100644 index 0000000..7eb8457 --- /dev/null +++ b/getline-test.c @@ -0,0 +1,11 @@ +#include<stdio.h> +#include<stdlib.h> + +int main (int argc, char *argv[]) { + char **string; + + string = malloc(100) + *string = "test"; + + printf("%s", **string); +} |