[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] c-string arguments stack-allocated?
From: |
John Cowan |
Subject: |
[Chicken-users] c-string arguments stack-allocated? |
Date: |
Wed, 14 Jun 2006 01:55:09 -0400 |
User-agent: |
Mutt/1.3.28i |
Is it correct that the NUL-terminated string passed to a foreign
function is stack-allocated, and therefore must be copied with
strdup() or similar if it is to be kept? Attempts to call free()
on such a string seem to reliably crash Chicken.
--
Mark Twain on Cecil Rhodes: John Cowan
I admire him, I freely admit it, http://www.ccil.org/~cowan
and when his time comes I shall address@hidden
buy a piece of the rope for a keepsake.
- [Chicken-users] c-string arguments stack-allocated?,
John Cowan <=