blob: d2bd8666e47f1d344338ebac03997dce19cf732c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <config.h>
#include <stdio.h>
#include <err.h>
#include <stdlib.h>
#include <unistd.h>
#include "nimisewi.h"
int
main(void)
{
#ifdef HAVE_PLEDGE
if (pledge("stdio", NULL) == -1) {
err(EXIT_FAILURE, "pledge failed");
}
#endif
char *ns;
ns = nimi_sewi();
if (ns == NULL) {
err(EXIT_FAILURE, "memory allocation failed");
}
printf("20 text/gemini\r\n");
printf("sina o lukin e nimi sewi:\n\n");
printf("# %s\n", ns);
return EXIT_SUCCESS;
}
|