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


Groups > comp.lang.c > #57750

Re: printing members of a structure

From jt@toerring.de (Jens Thoms Toerring)
Newsgroups comp.lang.c
Subject Re: printing members of a structure
Date 2015-02-27 11:31 +0000
Organization Freie Universitaet Berlin
Message-ID <clb2t4F1vusU2@mid.uni-berlin.de> (permalink)
References (1 earlier) <claajmFr6qaU1@mid.individual.net> <mcp9ep$vq$1@dont-email.me> <mcp9lu$g35$1@dont-email.me> <mcphds$vq$3@dont-email.me> <clb2h9F1vusU1@mid.uni-berlin.de>

Show all headers | View raw


Jens Thoms Toerring <jt@toerring.de> wrote:
>   #include <inttypes.h>

>   printf("hw_available: %PRIu32"\n", p->hw_available);

Uuups, lost a quote here, it has to be

   printf("hw_available: %"PRIu32"\n", p->hw_available);

i.e. this 'PRIu32' thingy is some kind of macro that gets
replaed by a string literal and the whole thing depends
on the automatic concatenation of string literals.

                          Regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

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


Thread

printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 03:42 +0000
  Re: printing members of a structure Ian Collins <ian-news@hotmail.com> - 2015-02-27 17:37 +1300
    Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 08:21 +0000
      Re: printing members of a structure Richard Heathfield <rjh@cpax.org.uk> - 2015-02-27 08:26 +0000
        Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 10:37 +0000
          Re: printing members of a structure Barry Schwarz <schwarzb@dqel.com> - 2015-02-27 03:16 -0800
            Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 12:52 +0000
          Re: printing members of a structure jt@toerring.de (Jens Thoms Toerring) - 2015-02-27 11:25 +0000
            Re: printing members of a structure jt@toerring.de (Jens Thoms Toerring) - 2015-02-27 11:31 +0000
              Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 22:58 +0000
            Re: printing members of a structure Keith Thompson <kst-u@mib.org> - 2015-02-27 08:20 -0800
              Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 22:55 +0000
  Re: printing members of a structure Barry Schwarz <schwarzb@dqel.com> - 2015-02-26 22:03 -0800
    Re: printing members of a structure Chad <cdalten@gmail.com> - 2015-02-26 23:06 -0800
    Re: printing members of a structure bilsch <king621@comcast.net> - 2015-02-27 08:23 +0000
      Re: printing members of a structure Nick Bowler <nbowler@draconx.ca> - 2015-03-02 18:40 +0000
        Re: printing members of a structure James Kuyper <jameskuyper@verizon.net> - 2015-03-02 14:28 -0500
          Re: printing members of a structure Nick Bowler <nbowler@draconx.ca> - 2015-03-03 15:07 +0000

csiph-web