Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | bilsch <king621@comcast.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | printing members of a structure |
| Date | 2015-02-27 03:42 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mcop3s$953$4@dont-email.me> (permalink) |
hypothetical function getstructure() returns a pointer to a structure of
the form:
struct{int one;int two;}strc1.
The structure name is already included via a header file so I cant use it
it the program. I want to do something like the following (which doesn't
work) but I don't know how to assign names to the structure members. TIA.
Bill S
[
printf("int1= %i int2= %i /n", strc1.one, strc1.two);
Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll 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