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


Ignore:
Timestamp:
07/09/2017 01:36:31 PM (7 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/memcmpu.c

    r002f873 r5c13d64  
    88#include "ctype.h"
    99
    10 int memcmpu(char *s1, char *s2, int n)
     10int memcmpu(void *vp1, void *vp2, int n)
    1111{
     12        char *cp1 = vp1;
     13        char *cp2 = vp2;
    1214        register char c1, c2;
    1315
    1416        while (n) {
    1517
    16                 c1 = *s1++;
    17                 c2 = *s2++;
     18                c1 = *cp1++;
     19                c2 = *cp2++;
    1820
    1921                if (isascii(c1) && islower(c1))
Note: See TracChangeset for help on using the changeset viewer.