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


_strnset

This function sets the first n characters of string to a character.

Compatibility:

This function is compatible with the following targets:

ANSI
BeOS
EMB/RTOS
Mac OS

Palm OS

Win32


Prototype:
#include <extras.h>
char * _strnset(char *str, int c, size_t n)
Parameters:

Parameters for this function are:

str  
char *  
The string to be modified  
c  
int  
The char to be set  
n  
size_t  
The number of characters of str to be set .to the value of c  

Remarks :

If the number of characters exceeds the length of the string all characters are set except for the terminating character.

Return:

A pointer to the altered string is returned.

See Also:

"_strset"


[ 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