src/stdlib/zstr.c
/* set length directly; caller may use this if using embedded nulls */
set length directly; caller may use this if using embedded nulls
set length directly ; caller may use this if using embedded nulls
char *
zs_set_len (ZSTR zstr, unsigned int len)
{
	DBGCHK(zstr);
	if (len == (unsigned int)-1) {
		len = strlen(zstr->str);
	}
	ASSERT(len < zstr->max);
	zstr->end = zstr->str + len;
	return zstr->str;
}
char * zs_set_len ( ZSTR zstr , unsigned int len ) { DBGCHK ( zstr ) ; if ( len == ( unsigned int ) -1 ) { len = strlen ( zstr -> str ) ; } ASSERT ( len < zstr -> max ) ; zstr -> end = zstr -> str + len ; return zstr -> str ; }
set length directly; caller may use this if using embedded nulls
set length directly ; caller may use this if using embedded nulls