repo.or.cz
/
libtool.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* mdemo2/configure.ac: Use AC_LIBTOOL_DLOPEN.
[libtool.git]
/
f77demo
/
fooc.c
blob
eac944d4dd14f8b5958e8e7a10c1d40c14f5aeea
1
#include
"foo.h"
2
3
4
int
csub
(
int
arg
)
5
{
6
return
(
2
*
arg
);
7
}
8
9
10
int
fwrapper
(
int
arg
)
11
{
12
int
res
;
13
printf
(
"Calling the Fortran 77 subroutine from the C wrapper...
\n
"
);
14
F77_FUNC
(
fsub
,
FSUB
)(&
arg
,&
res
);
15
printf
(
"Returned from the Fortran 77 subroutine...
\n
"
);
16
return
res
;
17
}