Ignore:
Timestamp:
Dec 24, 2006, 4:20:40 AM (19 years ago)
Author:
bird
Message:

Made it build (version + name length).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kLdr/kLdrHlp-gcc.c

    r2883 r2899  
    179179}
    180180
     181
     182int strncmp(const char *psz1, const char *psz2, size_t cch)
     183{
     184    while (cch-- > 0)
     185    {
     186        const char ch1 = *psz1++;
     187        const char ch2 = *psz2++;
     188        if (ch1 != ch2)
     189            return (int)ch1 - (int)ch2;
     190        if (!ch1)
     191            break;
     192    }
     193    return 0;
     194}
     195
    181196char *strchr(const char *psz, int ch)
    182197{
Note: See TracChangeset for help on using the changeset viewer.