[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: memstr

From: Simon Josefsson
Subject: [Bug-gnulib] Re: memstr
Date: Fri, 01 Oct 2004 01:42:25 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>> How about this?
> Shouldn't this be looking for one block of memory inside another?
> That is, the function should accept two size arguments, as well as two
> pointers.  That's more general.

If so, I'm not sure the name "memstr" is appropriate any more.  I
think str(ing) imply zero terminated arrays.  Is there a better name?
One idea, inspired by strpos, is mempos, but I dunno.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]