Pascal / BaseUnix / FpGetEnv
FpAccess, FpAlarm, FpChdir, FpChmod, FpChown, FpClose, FpClosedir, FpDup, FpDup2, FpExecv, FpExecve, FpExit, FpFcntl, pfdfillset, fpFD_CLR, fpFD_ISSET, fpFD_SET, fpFD_ZERO, FpFork, FPFStat, FpFtruncate, FpGetcwd, FpGetegid, » FpGetEnv, fpgeterrno, FpGeteuid, FpGetgid, FpGetgroups, FpGetpgrp, FpGetpid, FpGetppid, fpGetPriority, FpGetuid, FpIOCtl, FpKill, FpLink, FpLseek, fpLstat, FpMkdir, FpMkfifo, Fpmmap, Fpmunmap, FpNanoSleep, fpNice, FpOpen, FpOpendir, FpPause, FpPipe, FpRead, FpReaddir, fpReadLink, FpRename, FpRmdir, fpSelect, fpseterrno, FpSetgid, fpSetPriority, FpSetsid, fpsettimeofday, FpSetuid,
Funcion: FpGetEnv()
Sintaxis:
function FpGetEnv(
 
  name: pChar
 
):pChar;
 
function FpGetEnv(
 
  name: String
 
):pCh

Descripcion: Retorna el valor de el ambiente variable en Name. Si la variable no esta definida, nil es retornado. El valor de el ambiente variable puede ser una cadena en blanco. Un PChar es retornado a el acomodo para cadenas mas grandes que 255 bytes, TERMCAP and LS_COLORS, para instansia.

ERRORES:
no devuelve errores
Ejemplo:
Program Example41;
 
{ Program to demonstrate the GetEnv function. }
 
Uses BaseUnix;
 
begin
  Writeln ('Path is : ',fpGetenv('PATH'));
end.

Librerias Pascal

Libreria crt - CRT - Pantalla y teclado del PASCAL de Turbo que maneja la unidad
Libreria dos - DOS - Interface Turbo Pascal MS-DOS
Libreria Graph - Unidad para manipular los graficos de la pantalla compatible con TP
Libreria Objects - Objetos basicos compatible con TP
Libreria math - Rutinas adicionales matematicas
Libreria Printer - Provee de acceso a la impresora
Libreria strings - Rutinas para el manejo de cadenas
Libreria BaseUnix - Funcionalidad Basica de Linux
Libreria System - Manejo de Archivos - Funciones para la manipulacion de archivos en Pascal