projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1999-05-11 17:05:43 by keithw]
[ghc-hetmet.git]
/
ghc
/
lib
/
std
/
cbits
/
progargs.c
1
/*
2
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
3
*
4
* $Id: progargs.c,v 1.2 1999/03/02 20:14:01 sof Exp $
5
*
6
* System.getArgs Runtime Support
7
*/
8
9
#include "Rts.h"
10
#include "stgio.h"
11
12
DLLIMPORT extern char** prog_argv;
13
DLLIMPORT extern int prog_argc;
14
15
StgAddr
16
get_prog_argv(void)
17
{
18
return prog_argv;
19
}
20
21
StgInt
22
get_prog_argc()
23
{
24
return prog_argc;
25
}
26