Changeset 87201 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jan 8, 2021 3:06:12 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142154
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/memrchr.cpp
r82968 r87201 36 36 * 37 37 * @returns Pointer on a match or NULL otherwise. 38 * @param p bPointer to the block.38 * @param pv Pointer to the block. 39 39 * @param ch The char to search for. 40 40 * @param cb The size of the block. 41 41 */ 42 void *memrchr(const char *pb, int ch, size_t cb)42 void *memrchr(const void *pv, int ch, size_t cb) 43 43 { 44 44 if (cb) 45 45 { 46 const char *pbCur = pb+ cb - 1;46 const char *pbCur = (const char *)pv + cb - 1; 47 47 48 48 while (cb)
Note:
See TracChangeset
for help on using the changeset viewer.