2 Mar 2003 12:13
Re: RFC: memmem(3)
Luke Mewburn <lukem <at> netbsd.org>
2003-03-02 11:13:36 GMT
2003-03-02 11:13:36 GMT
On Sun, Mar 02, 2003 at 08:26:03PM +1030, wulf <at> ping.net.au wrote:
| G'day,
|
| after many uses I like to propose memmem(3) for inclusion into libc.
| memmem(3) is similar to strstr(3) with the difference that it allows
| searching for arbitary binary data patterns in an memory block,
| see man-page and source code included below fore more information.
|
| I believe that this is very versatile function that may become handy for
| many applications.
|
| As always, I entertain your constructive comments.
|
| Many thanks in advance
|
| cheerio Berndt
Looks good.
One comment; any reason the signature isn't
void *memmem(const void *b1, size_t len1, const void *b2, size_t len2);
?
(keep the lengths with the pointers they're for).
|
|
| ----------------------- memmem.3 (txt) ------------------------
| MEMMEM(3) NetBSD Programmer's Manual MEMMEM(3)
|
(Continue reading)
RSS Feed