contrib/mdocml/mandoc-db.c
static void
dbt_append(DBT *key, size_t *ksz, const char *cp)
{
	size_t		 sz;

	if (0 == (sz = strlen(cp)))
		return;

	assert(key->data);

	if (key->size)
		((char *)key->data)[(int)key->size - 1] = ' ';

	dbt_appendb(key, ksz, cp, sz + 1);
}
/*
 * Append a nil-terminated string to the database entry.  This can be
 * invoked multiple times.  The database entry will be nil-terminated as
 * well; if invoked multiple times, a space is put between strings.
 */
Append a nil-terminated string to the database entry.  This can be
invoked multiple times.  The database entry will be nil-terminated as
well; if invoked multiple times, a space is put between strings.
Append a nil - terminated string to the database entry . This can be invoked multiple times . The database entry will be nil - terminated as well ; if invoked multiple times a space is put between strings .
static void
dbt_append(DBT *key, size_t *ksz, const char *cp)
{
	size_t		 sz;
	if (0 == (sz = strlen(cp)))
		return;
	assert(key->data);
	if (key->size)
		((char *)key->data)[(int)key->size - 1] = ' ';
	dbt_appendb(key, ksz, cp, sz + 1);
}
static void dbt_append ( DBT * key , size_t * ksz , const char * cp ) { size_t sz ; if ( 0 == ( sz = strlen ( cp ) ) ) return ; assert ( key -> data ) ; if ( key -> size ) ( ( char * ) key -> data ) [ ( int ) key -> size - 1 ] = ' ' ; dbt_appendb ( key , ksz , cp , sz + 1 ) ; }
Append a nil-terminated string to the database entry.
Append a nil - terminated string to the database entry .