« Return to Thread: Problem with malloc/realloc

Re: Problem with malloc/realloc

by Markus Dost :: Rate this Message:

| View in Thread

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@...

--
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@...

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

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

 « Return to Thread: Problem with malloc/realloc