new feature

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2021-01-15 15:00:26 +01:00
parent d4036c3ace
commit e378aa9473

11
main.c
View file

@ -1,4 +1,13 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
int main() { return NULL; } int main(void) {
char *name = malloc(10);
printf("What's your name?\n> ");
scanf("%s", name);
printf("Hello %s!\n", name);
return NULL;
}