

memset()                 String Function                 memset()




Fill an area with a character

#include <string.h>
cchhaarr *mmeemmsseett(_b_u_f_f_e_r, _c_h_a_r_a_c_t_e_r, _n);
cchhaarr *_b_u_f_f_e_r; iinntt _c_h_a_r_a_c_t_e_r; uunnssiiggnneedd iinntt _n;

memset fills the  first n bytes of the area  pointed to by buffer
with copies of character.  It casts character to an uunnssiiggnneedd cchhaarr
before filling buffer with copies of it.

memset returns the pointer buffer.

***** See Also *****

string functions, string.h









































COHERENT Lexicon                                           Page 1


