[fpc-devel] How to call (access) to an external procedure!

Marco van de Voort marcov at stack.nl
Tue Jan 31 08:55:36 CET 2006


> dear friends,
> I know that if want to use an external variable/procedure in fpc, i 
> should use the following code:
> 
> function GetEnvironment (const Name: PChar): PChar; cdecl; external 'c' 
> name 'getenv';

Note that this procedure is already available as "fpgetenv" from unit
baseunix, and in a more friendly style as "getenvironmentvariable" using
plain strings from sysutils.




More information about the fpc-devel mailing list