13 lines
122 B
C
13 lines
122 B
C
char *
|
|
memset(s, c, n)
|
|
char *s;
|
|
register int n;
|
|
{
|
|
register char *s1 = s;
|
|
|
|
while (n--) {
|
|
*s1++ = c;
|
|
}
|
|
return(s);
|
|
}
|