randpup.git
user.c

/* randpup - ngram text generator kernel module
* Copyright (C) 2025 ArcNyxx
* see LICENCE.MIT file for licensing information */
#include <stdio.h>
#include <unistd.h>
#include "act.h"
int
main(void)
{
char buf[BUFSIZ] = { 0 };
pup_state_t st;
st.last = -1;
pup_reset(&st);
for (;;) {
pup_write(&st, buf, BUFSIZ);
write(STDOUT_FILENO, buf, BUFSIZ);
}
}