[RFC PATCH 2/3] cli: add support for limiting the number of search results
Daniel Schoepe
daniel at schoepe.org
Sat Oct 29 13:15:43 PDT 2011
On Sat, 29 Oct 2011 23:08:04 +0300, Jani Nikula <jani at 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 *".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111029/89ea91d2/attachment.pgp>
More information about the notmuch
mailing list