Providing argc and argv to a foreign function
I wish to call a foreign function whose first two arguments are argc and argv. The foreign function definition is as follows: (fli:define-foreign-function (|fl_initialize| "fl_initialize" :source) ((|na| (:pointer :int)) (|arg| (:c-array (:pointer :char))) (|appclass| (:pointer (:const :char))) (|appopt| (:pointer |XrmOptionDescRec|)) (|nappopt| :int)) :result-type (:pointer |Display|) :language :ansi-c) |na| corresponds to argc which is defined as (:pointer :int). How do I get argc in LispWorks? |arg| corresponds to argv. How do I get that? |appclass| is usually given a string as value. What should I write in the call to |fl_initialize|? |appopt| is usually given in C as NULL. Do I provide "nil" for that? |nappopt| is easy. It's zero (0). Any help would be appreciated. -- Dr Sian Mountbatten http://www.poenikatu.co.uk/ Associate member of the FSF no. 10888 Asocia membro de la Libera Programara Fonduso n-ro 10888 _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html