[MERGE] Read .kndx files in pyrex

John Arbash Meinel john at arbash-meinel.com
Fri Jun 29 15:31:11 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew D. Fuller wrote:
> On Thu, Jun 28, 2007 at 10:55:32PM -0500 I heard the voice of
> John Arbash Meinel, and lo! it spake thus:
>> I was trying to document that, but if you feel it would be better in
>> a different way (or if memchr() is a better function to use, and we
>> know it is portable), then I'll switch.
> 
> My memchr(3) manpage says:
> 
> STANDARDS
>      The memchr() function conforms to ISO/IEC 9899:1990 (``ISO C90'').
> 
> so it's probably a little late in the game for a platform to not have
> it...
> 
> 
>> As I understand it, there isn't a "strtoi".
> 
> There isn't.  int foo = (int)strtol(...) is the standard phraseology
> (or you may want an unsigned int and strtoul() in this case...).  Of
> course, you could also just make int_parent a long, but what effects
> that might have up-stack I don't know.

Yeah, I think it was 'memmem' that I ran into. Which is like 'strstr()'
only for fixed sizes strings, and ignoring NULL.

I'll do a quick update with memmem, and resubmit.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGhRevJdeBCYSNAAMRAv7fAJ9w3fGdniXCXWR9SzMvxkaI3hLoYgCffHDQ
DTmgcbyYcKdJr2QMn1DtJC4=
=3Lvj
-----END PGP SIGNATURE-----



More information about the bazaar mailing list