相关代码 |
|
/* @(#)memset.c 1.1 */ /*LINTLIBRARY*/ /* * Set an array of n chars starting at sp to the character c. * Return sp. */ char * memset(sp, c, n) register char *sp, c; register int n; { register char *sp0 = sp; while (--n >= 0) *sp++ = c; return (sp0); }