passing NULL to a "char *" from tcl

Mihir Luthra <[email protected]>
Newsgroups gmane.comp.programming.swig
Message-ID <CADPfsEg3=U-FUk6WRqQsDMz=1oqOu+=N+p=B3hVCMTfs8m2TAA@mail.gmail.com>
Hi,

First of all, I found swig yesterday and seriously, AMAZING! Especially
that guide for truly lazy people for writing interface file. Thanks for the
tool!

I posted on the list to receive some help regarding using C functions in
tcl.
I have compiled and loaded all packages successfully.

The point where I am stuck is that my function looks like this in C:

bool abc(void *a, char *b);

Doc [1] says to pass NULL from tcl, we should pass "NULL". I need to pass
both
arguments NULL.

I do like:

abc "NULL" "NULL"

This works well for first argument. But second argument treats NULL as a
string instead. Can anyone help me with this?

[1] http://www.swig.org/Doc1.3/Tcl.html

Thanks,
MIhir

_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.