Last change
on this file since 002f873 was 0580615, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Point of no return.
|
-
Property mode
set to
100644
|
File size:
444 bytes
|
Rev | Line | |
---|
[f40a309] | 1 | /*
|
---|
| 2 | =============================================================================
|
---|
| 3 | memset.c -- fill memory
|
---|
| 4 | Version 1 -- 1987-06-12
|
---|
| 5 |
|
---|
| 6 | Set an array of n chars starting at sp to the character c.
|
---|
| 7 | Return sp.
|
---|
| 8 | =============================================================================
|
---|
| 9 | */
|
---|
| 10 |
|
---|
[0580615] | 11 | char *memset(char *sp, char c, int n)
|
---|
[f40a309] | 12 | {
|
---|
| 13 | register char *sp0 = sp;
|
---|
| 14 |
|
---|
| 15 | while (--n >= 0)
|
---|
| 16 | *sp++ = c;
|
---|
| 17 |
|
---|
| 18 | return(sp0);
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.