[comp.sources.d] bzero

vern%lbl-pistachio@LBL-RTSG.ARPA (Vern Paxson) (05/10/88)

bzero() sets an area of memory to 0.  If you're running on a System V
routine just #define SV and flex will use memset(), which is equivalent.
If you don't have that, either, the following in flexdef.h will work
(along with #define SV):

	#define memset(s, c, n) \
		{ \
		register char *t = s; \
		register unsigned int m = n; \
		while ( m-- > 0 ) \
		    *t++ = c; \
		}


		Vern