Anyone here ever uses the c99 format specifiers?
They seem so....bloatedCode:#define PRIdFAST8 "d" #define PRIdFAST16 "d" #define PRIdFAST32 "d" #define PRIdFAST64 "lld"
Anyone here ever uses the c99 format specifiers?
They seem so....bloatedCode:#define PRIdFAST8 "d" #define PRIdFAST16 "d" #define PRIdFAST32 "d" #define PRIdFAST64 "lld"
Where did you get all those PRIdFAST macros from?
I don't recognise them as being C99.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
It appears to be in <inttypes.h>
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
yes inttypes.h, theres lots more and also for scanf
Code:#define SCNd8 "hhd" #define SCNd16 "hd" #define SCNd32 "d"
>Anyone here ever uses the c99 format specifiers?
Yes, I do.
>They seem so....bloated
Yes, they are. Such is the price you pay in C99 for a solid guarantee about the type.
My best code is written with the delete key.