Re: [RFC PATCH 2/3] cli: add support for limiting the number of search results

Subject: Re: [RFC PATCH 2/3] cli: add support for limiting the number of search results

Date: Sat, 29 Oct 2011 22:15:43 +0200

To: Jani Nikula, notmuch@notmuchmail.org

Cc: amdragon@mit.edu

From: Daniel Schoepe


On Sat, 29 Oct 2011 23:08:04 +0300, Jani Nikula <jani@nikula.org> wrote:
> strtoul() won't touch the data pointed to by p (it only modifies p), so
> in that sense it could be const, but you're right in that it really
> should be 'char *', just for a more complicated reason. Thanks for
> making me look it up: http://c-faq.com/ansi/constmismatch.html (not the
> best of explanations, perhaps, but gives an idea why the 2nd parameter
> of strtoul() can't be 'const char **').

Oh, right, thanks for the clarification. As I often do in situations
such as this, I confused "const char *" and "char const *".
part-000.sig (application/pgp-signature)

Thread: