FDK/Tools/Programs/public/lib/source/uforead/uforead.c
/* Add string. */
/* 64-bit warning fixed by type change here HO */
/* static STI addString(ufoCtx h, unsigned length, const char *value) */
Add string.
64-bit warning fixed by type change here HO
static STI addString(ufoCtx h, unsigned length, const char *value)
Add string . 64 - bit warning fixed by type change here HO static STI addString ( ufoCtx h unsigned length const char * value )
static STI addString(ufoCtx h, size_t length, const char *value)
{
	STI sti = (STI)h->strings.index.cnt;
	if (length == 0)
    {
		const char subs_name[] = "_null_name_substitute_";
		value = subs_name;
		length = sizeof(subs_name) - 1;
		message(h, "null charstring name");
    }
	*dnaNEXT(h->strings.index) = h->strings.buf.cnt;
	memcpy(dnaEXTEND(h->strings.buf, (long)(length + 1)), value, length);
	h->strings.buf.array[h->strings.buf.cnt - 1] = '\0';
	return sti;
}
static STI addString ( ufoCtx h , size_t length , const char * value ) { STI sti = ( STI ) h -> strings . index . cnt ; if ( length == 0 ) { const char subs_name [ ] = " " ; value = subs_name ; length = sizeof ( subs_name ) - 1 ; message ( h , " " ) ; } * dnaNEXT ( h -> strings . index ) = h -> strings . buf . cnt ; memcpy ( dnaEXTEND ( h -> strings . buf , ( long ) ( length + 1 ) ) , value , length ) ; h -> strings . buf . array [ h -> strings . buf . cnt - 1 ] = ' \0 ' ; return sti ; }
Add string.
Add string .
/* A null name (/) is legal in PostScript but could lead to unexpected
         behaviour elsewhere in the coretype libraries so it is substituted
         for a name that is very likely to be unique in the font */ /* Add new string index */ /* Add null-terminated string to buffer */ /* 64-bit warning fixed by cast here HO */