Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #91679

Re: Q: stdint format specifiers

From Johann Klammer <klammerj@NOSPAM.a1.net>
Newsgroups comp.lang.c
Subject Re: Q: stdint format specifiers
Date 2016-08-04 22:57 +0200
Organization Aioe.org NNTP Server
Message-ID <no0a80$jo9$2@gioia.aioe.org> (permalink)
References <nnvpf7$1ojc$1@gioia.aioe.org> <282c43f4-9e51-4c3c-9552-6703c60df230@googlegroups.com> <ln8twc1fpw.fsf@kst-u.example.com>

Show all headers | View raw


On 08/04/2016 09:44 PM, Keith Thompson wrote:
[...]
> 
> Without that ability, it could use "%ld" for any argument of type
> long, whether it was defined using the name "long" or the name
> "int32_t".  But then the resulting code (assuming you're trying
> to generate C source code) wouldn't be portable; it could fail
> when compiled for a system where int32_t is an alias for int, and
> long is 64 bits.  (Unless you regenerate the source code for each
> target system; is that an option?)
> 
Yes, you are right. I'll need a different tool...

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Q: stdint format specifiers Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-08-04 18:11 +0200
  Re: Q: stdint format specifiers supercat@casperkitty.com - 2016-08-04 09:53 -0700
    Re: Q: stdint format specifiers Keith Thompson <kst-u@mib.org> - 2016-08-04 12:44 -0700
      Re: Q: stdint format specifiers Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-08-04 22:57 +0200
      Re: Q: stdint format specifiers supercat@casperkitty.com - 2016-08-04 14:11 -0700
        Re: Q: stdint format specifiers Keith Thompson <kst-u@mib.org> - 2016-08-04 14:19 -0700
          Re: Q: stdint format specifiers supercat@casperkitty.com - 2016-08-04 15:08 -0700
            Re: Q: stdint format specifiers Keith Thompson <kst-u@mib.org> - 2016-08-04 15:26 -0700
          Re: Q: stdint format specifiers Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-08-04 23:19 -0700
            Re: Q: stdint format specifiers supercat@casperkitty.com - 2016-08-05 08:04 -0700
            Re: Q: stdint format specifiers Keith Thompson <kst-u@mib.org> - 2016-08-05 08:26 -0700

csiph-web