MGL_memset

Clears a memory block with 8-bit values.

Declaration

void MGLAPI MGL_memset(
    void *p,
    int c,
    long n)

Prototype In

mgraph.h

Parameters

p

Pointer to block to clear

c

Value to clear with

n

Number of bytes to clear

 

Description

This function clears a memory block to the specified 8 bit value. This function is similar to the standard C library memset function, but can correctly handle clearing of memory blocks that are larger than 64Kb in size for 16 bit real mode environments.

See Also

MGL_memsetw, MGL_memsetl

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com