logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

memrchr - find last occurrence of a character within another memory block

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                                MEMRCHR(3pub)

Description

memrchr finds the last occurrence of character c within memory block v, of length size.

Name

       memrchr - find last occurrence of a character within another memory block

Return Value

memrchr returns a pointer to the the match, if it finds any, or a null pointer if it doesn't.

See Also

publib(3), memchr(3)

Synopsis

       #include <publib.h>
       void *memrchr(const void *v, int c, size_t size);

See Also