Re: is this stadard C?
From: E. Robert Tisdale (E.Robert.Tisdale_at_jpl.nasa.gov)
Date: 02/22/05
- Next message: Andrey Tarasevich: "Re: FAQ 4.9 and void**"
- Previous message: Renato: "Is this board a good alternative to the PC?"
- In reply to: Keith Thompson: "Re: is this stadard C?"
- Next in thread: Keith Thompson: "Re: is this stadard C?"
- Reply: Keith Thompson: "Re: is this stadard C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Feb 2005 12:46:25 -0800
Keith Thompson wrote:
> Passing the extra parameter to main() is one way to do it.
> Another is (I think) declaring "extern char *environ[];".
> The latter is cleaner, IMHO.
> Both, of course, are non-standard.
getenv(const char *) *is* standard
but you must know the environment variable name
that you are looking for.
- Next message: Andrey Tarasevich: "Re: FAQ 4.9 and void**"
- Previous message: Renato: "Is this board a good alternative to the PC?"
- In reply to: Keith Thompson: "Re: is this stadard C?"
- Next in thread: Keith Thompson: "Re: is this stadard C?"
- Reply: Keith Thompson: "Re: is this stadard C?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|