Ignore:
Timestamp:
Jun 17, 2005, 6:32:39 AM (20 years ago)
Author:
bird
Message:

Porting to 64-bit FreeBSD...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libctests/glibc/string/tst-strlen.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2043 r2044  
    55#include <stdio.h>
    66#include <string.h>
     7
     8#ifndef HAVE_STRNLEN
     9static inline size_t strnlen(const char *psz, size_t cch)
     10{
     11    const char *psz2 = psz;
     12    while (cch > 0 && *psz)
     13        cch--, psz++;
     14    return psz - psz2;
     15}
     16#endif
    717
    818int
Note: See TracChangeset for help on using the changeset viewer.