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


Groups > comp.lang.c > #18091

Re: Why pointers to pointers used

From jgk@panix.com (Joe keane)
Newsgroups comp.lang.c
Subject Re: Why pointers to pointers used
Date 2012-03-01 20:35 +0000
Organization Public Access Networks Corp.
Message-ID <jiomj4$kgs$1@reader1.panix.com> (permalink)
References <21156118.1690.1330424244900.JavaMail.geo-discussion-forums@pbcqw3> <0.fddf359cc5467c88eb93.20120228120904GMT.87ehtfkvmn.fsf@bsb.me.uk> <MPG.29b78a8fa83e2b80989690@news.eternal-september.org> <e5f5655c-776a-4d9e-8af8-d3bcaf130c14@gr6g2000vbb.googlegroups.com>

Show all headers | View raw


In article <e5f5655c-776a-4d9e-8af8-d3bcaf130c14@gr6g2000vbb.googlegroups.com>,
Nick Keighley  <nick_keighley_nospam@hotmail.com> wrote:
>To be honest I regard
>
>   getCurrentLargeObject (&currentLargeObject);
>
>as morally a function. I'm only using a pointer because C is rubbish
>at assigning large objects.

Did you time it?  Very likely the compiler will generate the exact same
code no matter which form you use.

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


Thread

Why pointers to pointers used ArifulHossain tuhin <etothepowerpi@gmail.com> - 2012-02-28 02:17 -0800
  Re: Why pointers to pointers used China Blue Sea <chine.bleu@yahoo.com> - 2012-02-28 03:06 -0800
    Re: Why pointers to pointers used Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-02-28 12:09 +0000
      Re: Why pointers to pointers used Philip Lantz <prl@canterey.us> - 2012-02-29 01:06 -0800
        Re: Why pointers to pointers used James Kuyper <jameskuyper@verizon.net> - 2012-02-29 07:01 -0500
          Re: Why pointers to pointers used Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-29 04:52 -0800
        Re: Why pointers to pointers used China Blue Sea <chine.bleu@yahoo.com> - 2012-02-29 04:18 -0800
        Re: Why pointers to pointers used Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-29 04:52 -0800
          Re: Why pointers to pointers used Philip Lantz <prl@canterey.us> - 2012-03-01 01:06 -0800
            Re: Why pointers to pointers used James Kuyper <jameskuyper@verizon.net> - 2012-03-01 06:16 -0500
          Re: Why pointers to pointers used jgk@panix.com (Joe keane) - 2012-03-01 20:35 +0000
            Re: Why pointers to pointers used Willem <willem@toad.stack.nl> - 2012-03-01 21:30 +0000
          Re: Why pointers to pointers used Stephen Sprunk <stephen@sprunk.org> - 2012-03-01 15:39 -0600
    Re: Why pointers to pointers used tom st denis <tom@iahu.ca> - 2012-02-28 09:03 -0800
  Re: Why pointers to pointers used Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-02-28 11:24 +0000
  Re: Why pointers to pointers used Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-02-28 08:19 -0500
    Re: Why pointers to pointers used ArifulHossain tuhin <etothepowerpi@gmail.com> - 2012-02-28 06:32 -0800
  Re: Why pointers to pointers used Johann Klammer <klammerj@NOSPAM.a1.net> - 2012-02-28 15:33 +0100
    Re: Why pointers to pointers used Nobody <nobody@nowhere.com> - 2012-02-28 16:04 +0000

csiph-web