src/stdlib/zstr.c
/* chop off string to specified length */
chop off string to specified length
chop off string to specified length
void
zs_chop (ZSTR zstr, unsigned int len)
{
	DBGCHK(zstr);
	if (len < zs_len(zstr)) {
		zstr->str[len] = 0;
		zstr->end = zstr->str + len;
	}
}
void zs_chop ( ZSTR zstr , unsigned int len ) { DBGCHK ( zstr ) ; if ( len < zs_len ( zstr ) ) { zstr -> str [ len ] = 0 ; zstr -> end = zstr -> str + len ; } }
chop off string to specified length
chop off string to specified length