Re: Returning automatic pointers always bad?



pete said:

Richard wrote:
<snip>

His reasoning was correct enough if you dig into what he said :
"the pointer is assigned to another pointer which then continues
to point to valid memory". Implicit is "pointer value" when
mentioning assigning a "pointer" in this kind of chat.

No.

He's a troll. What did you expect from a troll - an accurate
response?

Please consider doing us all a favour, pete.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: can I use a pointer to step through memebers of structures?
    ... pete wrote: ... and that pointer must never be dereferenced). ... > Pointer arithmetic is defined in terms of arrays. ... > pointers to char, is when you have either a genuine array ...
    (comp.lang.c)
  • Re: Code Review? memory management in C
    ... pete writes: ... int main(int argc, char *argv) ... The form is intended to document the fact that the pointer argument ... is a pointer to an array rather than to a single object. ...
    (comp.lang.c)
  • Re: one past the last element of an array object
    ... pete wrote: ... First of all what is the meaning of "overflow" here? ... I screwed that up by generating a "one before" pointer. ... which is (sizeof object) bytes before the object ...
    (comp.lang.c)
  • Re: How to interpret this declaration
    ... > pete wrote: ... >>> The statment declares a standard function ... >>> another is a function pointer to a function ... >>> with a int parameter without return. ...
    (comp.lang.c)
  • Re: realloc
    ... >> pete wrote: ... >> s you have to use a pointer to a pointer ... But what happens when the memory allocation in cat fails? ... Michael Knaup ...
    (comp.lang.c)