[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cstring argument in deffcfun
- To: info-mcl@digitool.com
- Subject: Re: cstring argument in deffcfun
- From: Tom McDougal <mcdougal@cs.uchicago.edu>
- Date: Mon, 9 Jan 1995 19:20:09 GMT
- Organization: Univ. of Chicago Computer Science
- References: <9501091107.AA49550@unix1.sncc.lsu.edu>
- Sender: owner-info-mcl@digitool.com
In article <9501091107.AA49550@unix1.sncc.lsu.edu> Clinton R Lefort,
clefort@unix1.sncc.lsu.edu writes:
>I am trying to pass a cstring in this argument,unable to pass
>correct arguments.. the c environment is expecting a string as its argument,
and
>will return a long integer:
>
>(deffcfun (ml-open-s "MYcstring") ("mycstring" :cstring) :long); unsuccessful
>
Forgive me for suggesting the obvious, but what about using
the WITH-CSTRS macro? E.g.:
(with-cstrs ((s "mycstring")) ...)
(DEFFCFUN is unfamiliar to me.)
Good luck.
--
Tom McDougal University of Chicago Artificial Intelligence
mail-to:mcdougal@cs.uchicago.edu
http://cs-www.uchicago.edu/~mcdougal