[plt-scheme] FFI, argc and argv

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun May 6 17:02:11 EDT 2007

At Sun, 6 May 2007 10:11:07 -0400, Eli Barzilay wrote:
> On May  6, Paulo J. Matos wrote:
> > If I have a function in C that receives int argc, and char **argv,
> > what's the best way to warp it up?
> > 
> > Two issues come to my mind:
> > - command-line-arguments do not provide, afaik, argv[0].
> 
> No, that's the reason for `-C'.

Maybe irrelevant now, but `(find-system-path 'run-file)' provides
argv[0].

Matthew



Posted on the users mailing list.