git @ Cat's Eye Technologies Dipple / master c / test1.c
master

Tree @master (Download .tar.gz)

test1.c @masterraw · history · blame

/*
 * SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
 * For more information, please refer to <https://unlicense.org/>
 * SPDX-License-Identifier: Unlicense
 */

#include <stdio.h>

#define SIZE 1024

int
main(int argc, char **argv)
{
	char string[SIZE + 1];
	int i;

        srand(time(0));
	for (;;) {
		for (i = 0; i < SIZE; i++)
			string[i] = (random() % 26) + 'A';
		string[i] = '\0';
		printf("%s\n", string);
		sleep(1);
	}
	return(0);
}