source: buchla-68k/libsm/memset.c@ 57425b6

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

No more warnings in vlib.

  • Property mode set to 100644
File size: 426 bytes
Line 
1/*
2 =============================================================================
3 memset.c -- fill memory
4 Version 1 -- 1987-06-12
5
6 Set an array of n chars starting at vp to the character c.
7 Return vp.
8 =============================================================================
9*/
10
11#include "ram.h"
12
13void *memset(void *vp, uint8_t c, int16_t n)
14{
15 uint8_t *cp = vp;
16
17 while (--n >= 0)
18 *cp++ = c;
19
20 return(vp);
21}
Note: See TracBrowser for help on using the repository browser.