Something odd in docs: printf: 32.5.2 size_t and ptrdiff_t

Cecil Ward cecil at cecilward.com
Mon May 1 00:50:37 UTC 2023


Re: possible bug in docs, in the following: see printf:

===
32.5.2 size_t and ptrdiff_t

These use the zd and dt format specifiers respectively:

int* p, q;
printf("size of an int is %zt, pointer difference is %td\n", 
int.sizeof, p - q);
===

The format specifiers don’t look right in the example, or am I 
missing the point?


More information about the Digitalmars-d mailing list