Changeset 5c13d64 in buchla-68k for libsm/memsetw.c
- Timestamp:
- 07/09/2017 01:36:31 PM (8 years ago)
- Branches:
- master
- Children:
- 0292fbb
- Parents:
- 002f873
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libsm/memsetw.c
r002f873 r5c13d64 4 4 Version 1 -- 1987-03-18 -- D.N. Lynx Crowe 5 5 6 Set an array of n shorts starting at sp to the short w.7 Return pointer to sp.6 Set an array of n shorts starting at vp to the short s. 7 Return pointer to vp. 8 8 ============================================================================= 9 9 */ 10 10 11 short *memsetw(short *sp, short w, short n)11 void *memsetw(void *vp, short s, short n) 12 12 { 13 register short *sp0 = sp;13 short *sp = vp; 14 14 15 16 *sp++ = w;15 while (--n >= 0) 16 *sp++ = s; 17 17 18 return(sp0);18 return(vp); 19 19 }
Note:
See TracChangeset
for help on using the changeset viewer.