> 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.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to