mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
de837934d8
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@15336 a95241bf-73f2-0310-859d-f6bbb57e9c96
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;
|
|
}
|