On Sun, 2006-04-30 at 10:47 +0200, Andreas Jellinghaus wrote: > Am Sonntag, 30. April 2006 10:29 schrieb Nils Larsch: > > Andreas Jellinghaus wrote: > > > after a discussion with an expert I believe the proper handling of size_t > > > with printf is: > > > a) use "%lu" format for unsigned long and > > > b) always cast size_t to unsigned log. > > > > Didn't we already agree do to this ? > > We agreed on a). I 'm adding b). > Some gcc versions print warning about "%lu" format with > size_t on 32bit architectures, and I was told that problems > with this really happened with some compilers.
FWIW, POSIX has a "z" length modifier for size_t: http://www.opengroup.org/onlinepubs/009695399/functions/printf.html _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel