This repository has been archived on 2021-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
precommit-example/main.c
Matej Focko e378aa9473 new feature
Signed-off-by: Matej Focko <mfocko@redhat.com>
2021-01-15 15:00:26 +01:00

13 lines
201 B
C

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