FDK/Tools/Programs/makeotf/source/cb.c
/* [fcdb callback] Refill current database input file buffer. */
[fcdb callback] Refill current database input file buffer.
[ fcdb callback ] Refill current database input file buffer .
static char *fcdbRefill(void *ctx, unsigned fileid, size_t *count)
	{
	cbCtx h = ctx;
	File *file = &h->fcdb.files.array[fileid];
	*count = fileReadN(file, BUFSIZ, h->fcdb.buf);
	if (*count == 0)
		{
		h->fcdb.buf[0] = '\0';
		*count = 1;
		}
	return h->fcdb.buf;
	}
static char * fcdbRefill ( void * ctx , unsigned fileid , size_t * count ) { cbCtx h = ctx ; File * file = & h -> fcdb . files . array [ fileid ] ; * count = fileReadN ( file , BUFSIZ , h -> fcdb . buf ) ; if ( * count == 0 ) { h -> fcdb . buf [ 0 ] = ' \0 ' ; * count = 1 ; } return h -> fcdb . buf ; }
[fcdb callback] Refill current database input file buffer.
[ fcdb callback ] Refill current database input file buffer .
/* Signal EOF */