TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BOB STOUT
from: JAMIE KOWINSKY
date: 1998-02-06 23:25:00
subject: Enviorment variables

*** On 02-02-98 Bob Stout scrambled something like this:
>   The only standard way to read them is using the standard getenv() 
> function, which I know HP-UX supports.
***
Wow, I must be blind... I somehow missed that function.
thanks for pointing out the obvious to me, i needed it :)
It did the job i needed.
*** On 02-02-98 Bob Stout scrambled something like this:
>   There is no standard way to set an environment variable, although 
>   Note, however, that whatever method you use to change an environment 
> variable, it will only be changed for the duration of the current 
***
I simply needed a program to filter an enviorment variable, so what i did was 
simply getenv the var, filter it, and send it to standard out, which then was 
piped into a set command from a script.  Maybe a bit crude, but it works, its 
simple, and the change sticks around in the enviorment I need it in.
Thanks for all your help, perpahs you can help me with another problem...
I'm in need of a string class that will work ratehr uniformally on systems,
seams as though HP-UX simply let out the string class.  If you happen to know 
where I can obtain a well written string class that will compile on a varity 
of compilers, please let me know, Oh, it does not have to be fancy, just need 
to be able to store stuff in it, concat, and index it.
thanks
-Jamie
... Consciousness: that annoying time between naps.
--- FMail/386 1.02
---------------
* Origin: KastlerocK + Jeannette, PA + 412.527.3749 (1:129/230)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.