Supported Browsers Home   
MGL_memsetl Previous   
MGL_mirrorGlyph Next   
External Functions Up   

MGL_memsetw

Clears a memory block with 16-bit values.

Declaration

void MGLAPI MGL_memsetw(
    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 words to clear

 

Description

This function clears a memory block to the specified 16 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, and allows you to specify a specific 16 bit value to be cleared.

See Also

MGL_memset, MGL_memsetl

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