Changeset c2b2de7 in mainline for uspace/lib/posix/include/posix/string.h
- Timestamp:
- 2012-10-17T22:17:29Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 150a271
- Parents:
- 6454ad47 (diff), 57912af3 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/string.h
r6454ad47 rc2b2de7 37 37 #define POSIX_STRING_H_ 38 38 39 #include <mem.h> 40 #include <str.h> 39 #include "sys/types.h" 41 40 42 /* available in str.h 43 * 44 * char *strtok(char *restrict, const char *restrict); 45 * char *strtok_r(char *restrict, const char *restrict, char **restrict); 46 * 47 * available in mem.h 48 * 49 * void *memset(void *, int, size_t); 50 * void *memcpy(void *, const void *, size_t); 51 * void *memmove(void *, const void *, size_t); 52 * 41 /* 53 42 * TODO: not implemented due to missing locale support 54 43 * … … 61 50 #define NULL ((void *) 0) 62 51 #endif 52 53 /* 54 * These are the same as in HelenOS libc. 55 * It would be possible to directly include <str.h> and <mem.h> but 56 * it is better not to pollute POSIX namespace with other functions 57 * defined in that header. 58 * 59 * Because libposix is always linked with libc, providing only these 60 * forward declarations ought to be enough. 61 */ 62 /* From str.h. */ 63 extern char * strtok_r(char *, const char *, char **); 64 extern char * strtok(char *, const char *); 65 66 /* From mem.h */ 67 #define bzero(ptr, len) memset((ptr), 0, (len)) 68 extern void *memset(void *, int, size_t); 69 extern void *memcpy(void *, const void *, size_t); 70 extern void *memmove(void *, const void *, size_t); 71 63 72 64 73 /* Copying and Concatenation */
Note:
See TracChangeset
for help on using the changeset viewer.