Changeset 458d356 in mainline


Ignore:
Timestamp:
2011-06-24T23:04:05Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b83add, 3f4c897d
Parents:
67c64b9f
Message:

Added legacy declarations into string.h.

Location:
uspace/lib/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/string.h

    r67c64b9f r458d356  
    105105#ifndef POSIX_STRINGS_H_
    106106extern int posix_ffs(int i);
     107extern int posix_strcasecmp(const char *s1, const char *s2);
     108extern int posix_strncasecmp(const char *s1, const char *s2, size_t n);
    107109#endif
    108110
     
    140142
    141143        #define ffs posix_ffs
     144        #define strcasecmp posix_strcasecmp
     145        #define strncasecmp posix_strncasecmp
    142146#endif
    143147
  • uspace/lib/posix/strings.h

    r67c64b9f r458d356  
    4343
    4444/* String/Array Comparison */
     45#ifndef POSIX_STRING_H_
    4546extern int posix_strcasecmp(const char *s1, const char *s2);
    4647extern int posix_strncasecmp(const char *s1, const char *s2, size_t n);
     48#endif
    4749
    4850/* TODO: not implemented due to missing locale.h
Note: See TracChangeset for help on using the changeset viewer.