[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to print size_t in LGPLv2+ program
From: |
Bruno Haible |
Subject: |
Re: how to print size_t in LGPLv2+ program |
Date: |
Wed, 18 Aug 2010 01:35:52 +0200 |
User-agent: |
KMail/1.9.9 |
> > What a shame that POSIX omitted an <inttypes.h> PRIu* for size_t.
>
> You can define it by yourself ...
Or use uintptr_t instead of size_t. By the definition of these types,
you can be sure that uintptr_t is at least as wide as size_t. Then use
printf ("%" PRIuPTR, (uintptr_t) size_t_value);
- Works fine with gnulib's <inttypes.h>.
- Works fine with gettext.
- Doesn't need gettext or glibc versions that don't exist yet.
Bruno
- Re: how to print size_t in LGPLv2+ program, (continued)
Re: how to print size_t in LGPLv2+ program, Paul Eggert, 2010/08/17
Re: how to print size_t in LGPLv2+ program, Bruno Haible, 2010/08/17
Re: how to print size_t in LGPLv2+ program, Eric Blake, 2010/08/17
Re: how to print size_t in LGPLv2+ program,
Bruno Haible <=
Message not available
Message not available
Re: how to print size_t in LGPLv2+ program, Paolo Bonzini, 2010/08/23