src/stdlib/zstr.c
/* move data from pzsrc to zstr (clearing pzsrc) */
move data from pzsrc to zstr (clearing pzsrc)
move data from pzsrc to zstr ( clearing pzsrc )
void
zs_move (ZSTR zstr, ZSTR * pzsrc)
{
	DBGCHK(zstr);
	ASSERT(pzsrc);
	ASSERT(*pzsrc);
	free(zstr->str);
	memcpy(zstr, (*pzsrc), sizeof(*zstr));
	free(*pzsrc);
	*pzsrc = 0;
}
void zs_move ( ZSTR zstr , ZSTR * pzsrc ) { DBGCHK ( zstr ) ; ASSERT ( pzsrc ) ; ASSERT ( * pzsrc ) ; free ( zstr -> str ) ; memcpy ( zstr , ( * pzsrc ) , sizeof ( * zstr ) ) ; free ( * pzsrc ) ; * pzsrc = 0 ; }
move data from pzsrc to zstr (clearing pzsrc)
move data from pzsrc to zstr ( clearing pzsrc )