Changeset 3281 in genesis for tools/nodechk


Ignore:
Timestamp:
Nov 23, 2004, 2:38:03 AM (20 years ago)
Author:
lodewijk
Message:
  • svn:eol-style op native, dan wordt gelijk nodechk_unix.c overbodig
  • memicmp() is strncasecmp() onder posix.1
  • binaries, en gegenereerde dingen in het algemeen, zijn meestal geen goed idee in svn.
Location:
tools/nodechk
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • tools/nodechk/nodechk.c

    • Property svn:eol-style set to native
    r3280 r3281  
    191191
    192192#ifndef WIN32
    193 int memicmp(char *a,char *b,size_t c);
    194 int memicmp(char *a,char *b,size_t c)
    195 {
    196    int i;
    197    char ba[200],bb[200];
    198    memcpy(ba,a,c);
    199    memcpy(bb,b,c);
    200    for (i=0;i<c;i++)
    201    {
    202       ba[i]=toupper(ba[i]);
    203       bb[i]=toupper(bb[i]);
    204    }
    205    return memcmp(ba,bb,c);
    206 }
    207 
     193#define memicmp strncasecmp
    208194#endif
    209195
Note: See TracChangeset for help on using the changeset viewer.