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

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

Use standard integer types.

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