#include <stdio.h>
#include <stddef.h>
#include "PSMILe_f2c.h"
Go to the source code of this file.
Functions/Subroutines | |
void | psmile_get_varsize (void *p1, void *p2, INTEGER *diff) |
void psmile_get_varsize | ( | void * | p1, | |
void * | p2, | |||
INTEGER * | diff | |||
) |
Definition at line 41 of file psmile_get_varsize.c.
References INTEGER.
00049 : 00050 00051 void, Intent (In) :: p1 (*) 00052 void, Intent (In) :: p1 (*) 00053 00054 !OUTPUT PARAMETERS: 00055 00056 Integer, Intent (Out) :: diff 00057 00058 !DESCRIPTION: 00059 00060 Get Size of Variables 00061 00062 Routine "psmile_get_varsize" returns the difference between 00063 two pointers and is used to determine the size of variables. 00064 00065 \underline{The calling sequence:} 00066 00067 p1 = Pointer\\ 00068 p2 = Pointer 00069 00070 returns diff = p2 - p1 00071 00072 00073 !FILES USED: 00074 00075 <stdio.h> 00076 <stddef.h> 00077 "PSMILe_f2c.h" 00078 00079 !REVISION HISTORY: 00080 00081 Date Programmer Description 00082 ---------- ---------- ----------- 00083 06.07.03 H. Ritzdorf created 00084 00085 //EOP 00086 00087 ---------------------------------------------------------------------- 00088 $Id 00089 $Author 00090 ---------------------------------------------------------------------- */ 00091 00092 { 00093 *diff = (INTEGER) ((char *) p2 - (char *) p1); 00094 return; 00095 }