the foreign c-string type: what animal is that?
"Hoehle, Joerg-Cyril" <[email protected]> Wed, 3 Apr 2002 18:18:51 +0200
| Newsgroups | gmane.lisp.uffi.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, > > (malloc 'c-string "abc") does in fact two allocations: > > 1. one for the pointer, since char* IS a pointer > > 2. one for the buffer contents > > True. That's why I have a problem with free(). Should it deallocate both? Only the pointer? Does the pointer point to valid memory? Regards, Jorg Hohle.