Changeset 600f5d1 in mainline for uspace/app/bithenge/helenos/os.h
- Timestamp:
- 2012-06-27T20:10:30Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 02dcb20
- Parents:
- 978ccaf1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/helenos/os.h
r978ccaf1 r600f5d1 35 35 #include <macros.h> 36 36 #include <mem.h> 37 #include <stdlib.h> 37 38 #include <str.h> 38 39 #include <str_error.h> … … 67 68 } 68 69 70 static inline void *memchr(const void *s, int c, size_t n) 71 { 72 for (size_t i = 0; i < n; i++) 73 if (((char *)s)[i] == c) 74 return (void *)(s + i); 75 return NULL; 76 } 77 69 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.