src/stdlib/zstr.c
/* set zstring value to input zero-terminated string*/
set zstring value to input zero-terminated string
set zstring value to input zero - terminated string
static char *
zs_set_with_len (ZSTR zstr, const char * txt, unsigned int tlen)
{
	DBGCHK(zstr);
	zs_reserve(zstr, tlen+1);
	if (tlen) {
		strcpy(zstr->str, txt);
		zstr->end = zstr->str + tlen;
	}
	return zstr->str;
}
static char * zs_set_with_len ( ZSTR zstr , const char * txt , unsigned int tlen ) { DBGCHK ( zstr ) ; zs_reserve ( zstr , tlen + 1 ) ; if ( tlen ) { strcpy ( zstr -> str , txt ) ; zstr -> end = zstr -> str + tlen ; } return zstr -> str ; }
set zstring value to input zero-terminated string
set zstring value to input zero - terminated string