Commit 012eb965 authored by simonmar's avatar simonmar
Browse files

[project @ 2001-11-08 16:36:39 by simonmar]

getProgArgv can be an unsafe foreign import.
parent c094c3ad
-- -----------------------------------------------------------------------------
-- $Id: System.lhs,v 1.36 2001/10/13 16:02:47 sof Exp $
-- $Id: System.lhs,v 1.37 2001/11/08 16:36:39 simonmar Exp $
--
-- (c) The University of Glasgow, 1994-2000
--
......@@ -44,7 +44,8 @@ getArgs =
peekArray (p - 1) (advancePtr argv 1) >>= mapM peekCString
foreign import "getProgArgv" getProgArgv :: Ptr CInt -> Ptr (Ptr CString) -> IO ()
foreign import "getProgArgv" unsafe
getProgArgv :: Ptr CInt -> Ptr (Ptr CString) -> IO ()
-- Computation `getProgName' returns the name of the program
-- as it was invoked.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment