chicken-users
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
[Chicken-users] c-string-list gives segmentation violation
From
:
David Ireland
Subject
:
[Chicken-users] c-string-list gives segmentation violation
Date
:
Thu, 4 Jan 2018 08:23:53 +1000
Hi,
I'm writing an egg for a C library. One C function returns a
char **
I thought the correct foreign type would be
c-string-list
however this results in a segmentation violation when calling the function.
Here is a mock example code:
(import foreign)
(define return-c-string-list
(foreign-lambda* c-string-list ()
"const char** f = NULL;"
"C_return(f);"))
(return-c-string-list)
Which gives me:
Error: segmentation violation
Call history:
test.scm:8: return-c-string-list
test.scm:4: ##sys#peek-c-string-list
Any suggestions would be appreciated.
Thanks.
David
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Chicken-users] c-string-list gives segmentation violation
,
David Ireland
<=
Re: [Chicken-users] c-string-list gives segmentation violation
,
Evan Hanson
,
2018/01/03
Prev by Date:
Re: [Chicken-users] permissive checking of sum types
Next by Date:
Re: [Chicken-users] c-string-list gives segmentation violation
Previous by thread:
Re: [Chicken-users] permissive checking of sum types
Next by thread:
Re: [Chicken-users] c-string-list gives segmentation violation
Index(es):
Date
Thread