Changeset 5c13d64 in buchla-68k for libsm/memsetw.c


Ignore:
Timestamp:
07/09/2017 01:36:31 PM (8 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
0292fbb
Parents:
002f873
Message:

Use void pointers for mem*() functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libsm/memsetw.c

    r002f873 r5c13d64  
    44        Version 1 -- 1987-03-18 -- D.N. Lynx Crowe
    55
    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.
    88   =============================================================================
    99*/
    1010
    11 short *memsetw(short *sp, short w, short n)
     11void *memsetw(void *vp, short s, short n)
    1212{
    13         register short *sp0 = sp;
     13        short *sp = vp;
    1414
    15         while (--n >= 0)
    16                 *sp++ = w;
     15        while (--n >= 0)
     16                *sp++ = s;
    1717
    18         return(sp0);
     18        return(vp);
    1919}
Note: See TracChangeset for help on using the changeset viewer.