[Mingw-w64-public] current way to printf a size_type and size_t?

2014-03-15 Thread Jim Michaels
my understanding is gcc uses size_t for both.
I think there used ot be a %I or something like that for size_type, but not 
sure what it is now, since I have forgotten, and %I by itself seems to require 
a number of bits like %I64u. my memory is fuzzy.
thanks.


 
-
Jim Michaels
jmich...@yahoo.com
j...@renewalcomputerservices.com
http://RenewalComputerServices.com
http://JesusnJim.com (my personal site, has software)
---
IEC Units: Computer RAM  SSD measurements, microsoft disk size measurements 
(note: they will say GB or MB or KB or TB when it is IEC Units!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024^1B=1KiB]
[2^20B=1,024^2B=1,048,576B=1MiB]
[2^30B=1,024^3B=1,073,741,824B=1GiB]
[2^40B=1,024^4B=1,099,511,627,776B=1TiB]
[2^50B=1,024^5B=1,125,899,906,842,624B=1PiB]
SI Units: Hard disk industry disk size measurements:

[kB] [MB] [GB] [TB]
[10^3B=1,000B=1kB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
[10^15B=1,000,000,000,000,000B=1PB]--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] current way to printf a size_type and size_t?

2014-03-15 Thread LRN
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 16.03.2014 2:26, Jim Michaels wrote:
 my understanding is gcc uses size_t for both. I think there used ot
 be a %I or something like that for size_type, but not sure what it
 is now, since I have forgotten, and %I by itself seems to require a
 number of bits like %I64u. my memory is fuzzy. thanks.
'z' is the size of size_t. I.e. %zu - size_t, %zd - ssize_t

Note that this requires a compatible printf implementation (i.e. not
msvcrt).

- -- 
O ascii ribbon - stop html email! - www.asciiribbon.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (MingW32)

iQEcBAEBAgAGBQJTJOlzAAoJEOs4Jb6SI2CwthMH/2UgZ2Tkgudx3mESOw2p8I+X
/8tZEgH8pffpHwhD2M83rw5NUXYPgg3hCV7i+zxhNpuCjYy2O2xvMNbOMH4PIl40
oXiA1ouWqf6SV5qHn1+qAvzSm0hznUZsG1ErwmEJ0J4gJM23DAjRXcd4EAnKUuZV
F0YSvb+iYvB+uy7dEzTKNuZSdagJBJDtreoSnKt5rdzJwhPDJtiI6mqztLKr5NYP
I8e7Pz4vSJYFIj2qHtQBb3g75SS2VJmC+vYiVPpA4DSd1OSmA1uyYRKqHaRhN8Fx
Pm2Id7IcCbdfv/KG9L/tR49Uf2x1FYiQrwKmVAEZpEc3A61pQkHs2QWovHM5fRg=
=cn2x
-END PGP SIGNATURE-

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] current way to printf a size_type and size_t?

2014-03-15 Thread JonY
On 3/16/2014 07:59, LRN wrote:
 On 16.03.2014 2:26, Jim Michaels wrote:
 my understanding is gcc uses size_t for both. I think there used ot
 be a %I or something like that for size_type, but not sure what it
 is now, since I have forgotten, and %I by itself seems to require a
 number of bits like %I64u. my memory is fuzzy. thanks.
 'z' is the size of size_t. I.e. %zu - size_t, %zd - ssize_t
 
 Note that this requires a compatible printf implementation (i.e. not
 msvcrt).
 

On MS printf, yes it is %Iu.



signature.asc
Description: OpenPGP digital signature
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] current way to printf a size_type and size_t?

2014-03-15 Thread Ray Donnelly
On Sat, Mar 15, 2014 at 11:59 PM, LRN lrn1...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 16.03.2014 2:26, Jim Michaels wrote:
 my understanding is gcc uses size_t for both. I think there used ot
 be a %I or something like that for size_type, but not sure what it
 is now, since I have forgotten, and %I by itself seems to require a
 number of bits like %I64u. my memory is fuzzy. thanks.
 'z' is the size of size_t. I.e. %zu - size_t, %zd - ssize_t

 Note that this requires a compatible printf implementation (i.e. not
 msvcrt).


to enable this, pass -D__USE_MINGW_ANSI_STDIO=1 to gcc/g++

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public