bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc3 and compiler warnings


From: Neal H Walfield
Subject: Re: gcc3 and compiler warnings
Date: 07 Apr 2002 11:52:31 -0400
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

>  Ok, so the parentheses only tell the compiler to increment the pointer and 
> not
> the value that the pointer is pointing to.

That is what was always happening.  I think that you do not understand
what a postincrement does:

        void* post_pointer_inc (void **p)
        {
          void *r = *p;
          *p = *p + 1;
          return r;
        }

now, contrast this with a preincrement:

        void* pre_point_inc (void **p)
        {
          *p = *p + 1;
          return *p;
        }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]