yeomans at desuetude dot com wrote:
> First, the stringPtr work is unnecessary; you can pass an Rb String in
> the function, and somehow a CString will be what's actually fed to the
> function.
I don't believe that applies in this case; from his description, it sounds
like the fourth parameter is an output buffer where nc_get_var1_text can
write its results. If that is the case, then it would be very bad news to
pass in an RB string; the CString type is equivalent to "const char*", not
to "char*".
Mars Saxman
REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|