#include <stdio.h>
#include <err.h>
#include <stdlib.h>
#include <unistd.h>

#include "nimisewi.h"

int
main(void)
{
#ifdef __OpenBSD__
    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;
}