source: buchla-68k/libsm/memsetw.c@ 6262b5c

Last change on this file since 6262b5c was 6262b5c, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Added include files for global functions and variables.

  • Property mode set to 100644
File size: 469 bytes
Line 
1/*
2 =============================================================================
3 memset.c -- fill memory with short words
4 Version 1 -- 1987-03-18 -- D.N. Lynx Crowe
5
6 Set an array of n shorts starting at vp to the short s.
7 Return pointer to vp.
8 =============================================================================
9*/
10
11#include "all.h"
12
13void *memsetw(void *vp, int16_t s, int16_t n)
14{
15 int16_t *sp = vp;
16
17 while (--n >= 0)
18 *sp++ = s;
19
20 return(vp);
21}
Note: See TracBrowser for help on using the repository browser.