My AIX box only accepts %lld as the long long int printf format. If this format also works on other platforms, I think it would be nice to use this instead of %Ld What is the standard ? Andreas
Andreas Zeugswetter wrote:
>
> My AIX box only accepts %lld as the long long int printf format.
>
> If this format also works on other platforms, I think it would be nice to use this instead of %Ld
> What is the standard ?
I believe that this falls outside the standards as compiler-specific
extensions (for 32-bit machines anyway).
gcc and glibc uses the "%Ld" and the Alpha box has 64-bit long ints
anyway so would use "%ld". This is at least a machine- and
architecture-specific item.
Ooh, I just found in my (gnu) man page for scanf:
Specifying two l flags is equivalent to the L flag.
so at least for my libc both forms are supported...
- Tom
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера