src/stdlib/zstr.c
/* create & return new zstring containing first len bytes of str */
create & return new zstring containing first len bytes of str
create & return new zstring containing first len bytes of str
ZSTR
zs_newsubs (const char * str, unsigned int len)
{
	ZSTR zstr = zs_news(str);
	ASSERT(len<=safelen(str));
	zstr->str[len]=0;
	return zstr;
}
ZSTR zs_newsubs ( const char * str , unsigned int len ) { ZSTR zstr = zs_news ( str ) ; ASSERT ( len <= safelen ( str ) ) ; zstr -> str [ len ] = 0 ; return zstr ; }
create & return new zstring containing first len bytes of str
create & return new zstring containing first len bytes of str