[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Dynamic loading foreign C library problem
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] Dynamic loading foreign C library problem |
Date: |
Tue, 22 Nov 2005 20:07:50 -0000 |
User-agent: |
Opera M2/8.02 (MacPPC, build 2148) |
Am 22.11.2005, 17:04 Uhr, schrieb Matthew David Parker
<address@hidden>:
[...] So I had to do sizeof(strlen(argstring) + 1) instead.
Hello,
what is that sizeof operator doing there? It should just be something like
malloc(strlen(argstring) + 1)
otherwise the value of the expression will also be 4. (But probably this
was just a typo in your e-mail, so never mind)
[...]
PS. On a side question, is there some thing you can do in the csi chicken
interpreter to make it so you can press the "up" arrow and cycle through
the history of your commands, like in a bash shell?
[...]
Emacs and the readline egg have already been suggested. Yet another
flexible
alternative is the rlwrap program:
http://utopia.knoware.nl/~hlub/uck/rlwrap/
cu,
Thomas