mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-12-27 07:09:26 +08:00
18 lines
275 B
C
18 lines
275 B
C
|
#include "foo.h"
|
||
|
|
||
|
|
||
|
int csub(int arg)
|
||
|
{
|
||
|
return (2*arg);
|
||
|
}
|
||
|
|
||
|
|
||
|
int fwrapper(int arg)
|
||
|
{
|
||
|
int res;
|
||
|
printf("Calling the Fortran 77 subroutine from the C wrapper...\n");
|
||
|
F77_FUNC(fsub,FSUB)(&arg,&res);
|
||
|
printf("Returned from the Fortran 77 subroutine...\n");
|
||
|
return res;
|
||
|
}
|