[En-Nut-Discussion] Problem with malloc/realloc

Markus Dost markus.dost at dr-clauss.de
Thu Apr 26 16:14:28 CEST 2012


Hi Nathan,
> By "moved" do you mean something like:
>
>     int * ptr = malloc(sizeof(int) * 6);
>     if (ptr) {
>         ptr++; //<-- Is this what you mean by move?
>         free(ptr);
>     }
That's right.

-- 
Dipl.-Ing. Markus Dost
Development

+49-37754-507-31
Email: markus.dost at dr-clauss.de

-- 
Dr. Clauss Bild- und Datentechnik GmbH
Turnhallenweg 5a
D-08297 Zwoenitz
Germany

Phone: +49-37754-507-0
Fax: +49-37754-507-28

www.dr-clauss.de
mail at dr-clauss.de

CEOs:
  Dr.-Ing. Ulrich Clauß
  Dipl.-Ing. Dagmar Clauß
Amtsgericht Chemnitz HRB 12 958
VAT: DE 812062471




More information about the En-Nut-Discussion mailing list