Hi and thanks for both the replies!
I should have probably been more explicit about this: the function you're looking at (enctypex_msname) is just an "utility" extracted from a big file which encode/decode data, which has been written by a third party.
The C is quite a mess (both in terms of structuring and often uses contrived logic) and the author uses those if (name_of_pointer_char) {} tests to see if something was passed into the function.
I have no control over the code, or rather I'd like to stay away from it as much as possible :).
But I need to decode some data and make some tests and doing it from Perl will be a lot faster: I won't rewrite the code to be "XS compatible" because that doesn't make sense (I would rather try to rewrite the thing directly in Perl) but I need to pass "NULL" pointers to the functions and unless there's some quick recipe for doing that with Inline::C, I'd better write a swig interface for the library and pass undef as needed.
In reply to Re^2: Inline::C and NULL pointers
by markong
in thread Inline::C and NULL pointers
by markong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |