ftp.nice.ch/pub/next/games/fun/cookie.s.tar.gz#/Cookie/_Cookie/CookieV1.0/cookie.filters/bix2cookie.c

This is bix2cookie.c in view mode; [Download] [Up]

#include <stdio.h>

/* format expected is one cookie per 'line', with @ representing an embedded \n */
void main(int argc, char * argv[])
{
	int c;
	char *title;
	
	if (argc < 2)
		title = "BIX";
	else
		title = argv[1];
			
	c = getchar();
	while (c != EOF) {
		c = getchar();
		printf("#%s%%", title);			/* cookie title */
		while ((c != EOF) && (c != '\n')) {
			/* write cookie */
			if (c == '@')
				printf("\n ");
			else
				putchar(c);
			c = getchar();
		}
		putchar('\n');
	}
	
	printf("##\n");		/* end */
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.