linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Buchan <M.J.Buchan@gre.ac.uk>
To: Rafael Santos <rafael@thinkfreak.com.br>
Cc: linux-c-programming <linux-c-programming@vger.kernel.org>
Subject: Re: Returning pointer to array of structures
Date: Wed, 30 Apr 2003 09:24:22 +0100	[thread overview]
Message-ID: <20030430082421.GH22282@gre.ac.uk> (raw)
In-Reply-To: <UP74EBBAEBHCKGTNLKMJPL95LFFDV.3ead0903@rafaelnote.ns1.lhost.com.br>

Hi,

On Mon, Apr 28, 2003 at 07:57:07AM -0300, Rafael Santos wrote:
> Try the modifications above.
>
> - menuentry parseSubmenu (xmlDocPtr doc, xmlNodePtr cur, menuentry *mePtr, int i)
> + void parseSubmenu (xmlDocPtr doc, xmlNodePtr cur, menuentry *mePtr, int i)

Thanks. Ive done as you suggested and it all works. 

As the way i had coded it before where i was returning the structure
each time worked, I am assuming this is a better way to code it (seeing 
as you guys have suggested it and i know diddly squat :-)

Why is this so?
Is it just because i do not have the extra overhead of
passing/returning the structure for each function call or is there
something more fundamental?

Excuse my ignorance but this is my first C program after hello world
:-)

Thanks again.

Martin

  reply	other threads:[~2003-04-30  8:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-29  8:31 Returning pointer to array of structures Martin Buchan
2003-04-28 10:57 ` Rafael Santos
2003-04-30  8:24   ` Martin Buchan [this message]
2003-05-01  0:49     ` Glynn Clements
2003-05-01  6:03       ` Rafael Santos
2003-05-01  9:49       ` Martin Buchan
2003-04-29  9:30 ` Glynn Clements
2003-04-29 10:28   ` Martin Buchan
2003-04-29 12:11 ` Jason Cooper
2003-04-29 20:57   ` Glynn Clements

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030430082421.GH22282@gre.ac.uk \
    --to=m.j.buchan@gre.ac.uk \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=rafael@thinkfreak.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).