According to Jim Roland:
So the convention to access a system call or part of the C Library is to declare a function with same parameters and return data-type and put a C; at the end of it?
Yes.
Seems too easy! :)
Okay, if you prefer something more difficult: The `C' directive is only to declare functions that are lowercase only. If the C declaration is in mixed case, for instance
void MyCFunction ( int foo, long bar, long long baz );
write
Procedure MyCFunction ( foo: Integer; bar: MedInt; baz: LongInt ); AsmName 'MyCFunction';
(* For more about `MedInt' and friends, see `info -f gpc -n "Integer types"'. This requires something more recent than gpc-2.0; see
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/beta/ ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/alpha/
*)
Have fun,
Peter -- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/