Skip to content

Instantly share code, notes, and snippets.

@danking
Created August 27, 2011 22:32
Show Gist options
  • Select an option

  • Save danking/1175951 to your computer and use it in GitHub Desktop.

Select an option

Save danking/1175951 to your computer and use it in GitHub Desktop.
danking@danking-desktop:~ 18:31 $ racket
Welcome to Racket v5.1.
> (require ffi/unsafe)
> ((get-ffi-obj "execv" #f (_fun _path (_list i _string) -> _int)) "/bin/ls" '("/bin/ls"))
-1
> "test"
"test"
>
danking@danking-desktop:~ 18:32 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment