using C function in fortran code
From: Ki (docskky_at_yahoo.com)
Date: 08/19/04
- Next message: Richard Maine: "Re: using C function in fortran code"
- Previous message: Steve Lionel: "Re: GETARG in ifc"
- Next in thread: Richard Maine: "Re: using C function in fortran code"
- Reply: Richard Maine: "Re: using C function in fortran code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Aug 2004 09:00:00 -0700
Hello,
I am trying to write a program which fortran calls C routines.
Such as,
C language
void my_malloc_(void **p, int *size) {
*p=(void *)malloc(*size);
}
fortran language
call my_malloc(p, length)
However, I keep getting Segmentation fault.
I use Sun.
Could anyone help me out?
Thank you
- ki
- Next message: Richard Maine: "Re: using C function in fortran code"
- Previous message: Steve Lionel: "Re: GETARG in ifc"
- Next in thread: Richard Maine: "Re: using C function in fortran code"
- Reply: Richard Maine: "Re: using C function in fortran code"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]