Anonymous | Login | 2023-12-05 06:05 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Type | Date Submitted | Last Update | |||||||
0001633 | [Issue 8 drafts] Base Definitions and Headers | Comment | Enhancement Request | 2023-02-16 10:07 | 2023-03-06 16:36 | |||||||
Reporter | nrk | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | Open | |||||||||
Status | New | Product Version | ||||||||||
Name | Nickolas Raymond Kaczynski | |||||||||||
Organization | ||||||||||||
User Reference | ||||||||||||
Section | <string.h> | |||||||||||
Page Number | n/a | |||||||||||
Line Number | n/a | |||||||||||
Final Accepted Text | ||||||||||||
Summary | 0001633: Add memrchr | |||||||||||
Description |
memrchr is a simple and useful function that is similar to memchr, except it finds the last occurrence of a byte. It is provided by the following implementations already: * glibc (https://www.man7.org/linux/man-pages/man3/memrchr.3.html) [^] * musl * openbsd (https://man.openbsd.org/memrchr.3) [^] * freebsd (https://man.freebsd.org/cgi/man.cgi?query=memrchr&manpath=FreeBSD+13.1-RELEASE+and+Ports) [^] (And probably many others). |
|||||||||||
Desired Action |
Under section <string.h> add: void *memrchr(const void *s, int c, size_t n); Under memchr, add memrchr to SEE ALSO. Add a new memrchr page: NAME memrchr - find last occurrence of a byte in memory SYNOPSIS #include <string.h> void *memrchr(const void *s, int c, size_t n); DESCRIPTION The memrchr() function shall locate the last occurrence of c (converted to an unsigned char) in the initial n bytes (each interpreted as unsigned char) pointed to by s. RETURN VALUE The memrchr() function shall return a pointer to the located byte, or a null pointer if the byte is not found. ERRORS No errors are defined. |
|||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
|
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |