[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


memset

Clear the contents of a block of memory.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <string.h>
void *memset(void *dest, int c, size_t n);
Parameters:

Parameters for this facility are:

dest  
void *  
The destination memory  
c  
int  
The char to set  
n  
size_t  
The maximum length to set  

Remarks:

The memset() function assigns c to the first n characters of the item pointed to by dest.

Return:

memset() returns the value of dest.

For example of memset() usage:
Refer to  "Example of memchr() usage." .


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000