Ignore:
Timestamp:
2018-06-25T15:49:26Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fbfe59d
Parents:
bfe90b6
git-author:
Jiri Svoboda <jiri@…> (2018-06-24 19:48:37)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-25 15:49:26)
Message:

Move memchr to libc and add tests for other memxxx functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/bithenge/src/helenos/common.h

    rbfe90b6 r2498b95  
    7373}
    7474
    75 static inline void *memchr(const void *s, int c, size_t n)
    76 {
    77         for (size_t i = 0; i < n; i++)
    78                 if (((char *)s)[i] == c)
    79                         return (void *)(s + i);
    80         return NULL;
    81 }
    82 
    8375static inline errno_t bithenge_parse_int(const char *start, bithenge_int_t *result)
    8476{
Note: See TracChangeset for help on using the changeset viewer.