~ knotless Search/
↑↓ move↵ open⇧↵ all results

spaces.cameron.stream/hello

Hello.

0
1
main
30 lines · 828 B Raw History
/* Who writes to the World, and the census of the town. */

#ifndef CENSUS_H
#define CENSUS_H

#include <stdio.h>

#include "history.h"
#include "records.h"

#define MAX_SENDERS MAX_LINES

struct sender {
	char name[FIELD];
	char home[FIELD];
	int ready; /* Real minutes past midnight the letter is sealed and the sender leaves. */
	char body[8];
};

/* What a household sends on a day, and when it leaves to post it.
 * Residents write their initial. North of the river they were taught to write in capitals. */
struct sender sender_of(const struct household *h, struct day day);

/* Everyone who writes to the World on a day. They write on the first of the month. */
int senders(struct day day, struct sender out[]);

/* Write the census of the town as it was on a day. */
void take_census(FILE *out, struct day day);

#endif