new feature
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
d4036c3ace
commit
e378aa9473
1 changed files with 10 additions and 1 deletions
11
main.c
11
main.c
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Reference in a new issue