Changeset 0ffbed9 in mainline for uspace/lib/posix/strings.h


Ignore:
Timestamp:
2011-06-19T17:49:29Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5974661
Parents:
f48b637 (diff), 32fb6944 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix.

File:
1 edited

Legend:

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

    rf48b637 r0ffbed9  
    11/*
    22 * Copyright (c) 2011 Jiri Zarevucky
     3 * Copyright (c) 2011 Petr Koupy
    34 * All rights reserved.
    45 *
     
    3637#define POSIX_STRINGS_H_
    3738
    38 extern int posix_ffs(int);
     39/* Search Functions */
     40extern int posix_ffs(int i);
    3941
    40 extern int posix_strcasecmp(const char *, const char *);
    41 extern int posix_strncasecmp(const char *, const char *, size_t);
     42/* String/Array Comparison */
     43extern int posix_strcasecmp(const char *s1, const char *s2);
     44extern int posix_strncasecmp(const char *s1, const char *s2, size_t n);
    4245
    4346/* TODO: not implemented due to missing locale.h
     
    4750 */
    4851
    49 
    5052/* Legacy Functions */
    51 
    52 extern int posix_bcmp(const void *, const void *, size_t);
    53 extern void posix_bcopy(const void *, void *, size_t);
    54 extern void posix_bzero(void *, size_t);
    55 extern char *posix_index(const char *, int);
    56 extern char *posix_rindex(const char *, int);
     53extern int posix_bcmp(const void *mem1, const void *mem2, size_t n);
     54extern void posix_bcopy(const void *dest, void *src, size_t n);
     55extern void posix_bzero(void *mem, size_t n);
     56extern char *posix_index(const char *s, int c);
     57extern char *posix_rindex(const char *s, int c);
    5758
    5859#ifndef LIBPOSIX_INTERNAL
    5960        #define ffs posix_ffs
     61
    6062        #define strcasecmp posix_strcasecmp
    6163        #define strncasecmp posix_strncasecmp
    62        
     64
    6365        #define bcmp posix_bcmp
    6466        #define bcopy posix_bcopy
Note: See TracChangeset for help on using the changeset viewer.