From 097f13f08a3239bad736c86922d5813b75d0bf11 Mon Sep 17 00:00:00 2001 From: Antonio Linares Date: Sun, 9 Dec 2001 18:15:27 +0000 Subject: [PATCH] added hb_getenv() definition --- harbour/include/hbapi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/include/hbapi.h b/harbour/include/hbapi.h index 2879f2fd66..8e62367c7e 100644 --- a/harbour/include/hbapi.h +++ b/harbour/include/hbapi.h @@ -577,8 +577,12 @@ extern char * hb_verCompiler( void ); /* retrieves a newly allocated buffer cont extern char * hb_verHarbour( void ); /* retrieves a newly allocated buffer containing harbour version */ extern void hb_verBuildInfo( void ); /* display harbour, compiler, and platform versions to standard console */ +/* environment variables access */ +/* WARNING: This returned pointer must be freed using hb_xfree( ( void * ) ptr ); */ +extern char * hb_getenv( const char * name ); + #if defined(HB_EXTERN_C) } #endif -#endif /* HB_APIEXT_H_ */ +#endif /* HB_APIEXT_H_ */ \ No newline at end of file