add chapter3/altnames.c
This commit is contained in:
parent
486beda015
commit
d22453ea71
14
chapter3/altnames.c
Normal file
14
chapter3/altnames.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
int main(int argc, char const *argv[])
|
||||
{
|
||||
int32_t me32;
|
||||
me32 = 45933945;
|
||||
printf("First, assume int32_t is int:");
|
||||
printf("me32 = %d\n", me32);
|
||||
printf("Next, let't not mak any assumption.\n");
|
||||
printf("Instead, use a \"macro\" from inttype.h:");
|
||||
printf("me32 = %" PRId32 "\n", me32);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user