[UFFI-Users] string arguments that may be null
Kevin Rosenberg
kevin at rosenberg.net
Mon Dec 27 15:05:49 MST 2004
John Wiseman wrote:
> What's the correct way to define a foreign function that accepts a
> string argument which can also be a null pointer?
John,
Take a look at tests/getenv.lisp. my-getenv can take an argument of
NIL, which when used with the function's with-cstrings form, does the
right thing.
--
Kevin Rosenberg
kevin at rosenberg.net
More information about the UFFI-Users
mailing list