ftp.nice.ch/pub/next/unix/audio/cmusic.bs.N.tar.gz#/src/lprev/getibuf.c

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

#include <stdio.h>

long pad;

getibuf(buf)
	register float *buf;
{
	register int n;

	if ((n = fgetfbuf(buf, BUFSIZ, stdin)) != BUFSIZ) {
		if (n < 0) {
			fprintf(stderr, "lprev: input error\n");
			exit(1);
		}
		while (n < BUFSIZ && pad-- > 0)
			*(buf+n++) = 0.0;
	}

	return(n);
}

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