templates/c/main.c

12 lines
218 B
C
Raw Normal View History

#include <stdio.h>
2024-05-06 21:40:01 +00:00
#include <stdlib.h>
int main(void)
{
char greet[] = "hello, world!\n";
int written = printf("%s", greet);
return written == (sizeof(greet) - 1)
? EXIT_SUCCESS : EXIT_FAILURE;
2024-05-06 21:40:01 +00:00
}