Linux/C/getenv
From: Anakin (harme_at_gloryroad.net)
Date: 08/25/03
- Next message: Joe Beanfish: "Re: Understanding gdb"
- Previous message: Christophe Le Gal: "Re: XClearArea and XDrawString problem"
- Next in thread: Richard Heathfield: "Re: Linux/C/getenv"
- Reply: Richard Heathfield: "Re: Linux/C/getenv"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Aug 2003 13:12:51 -0400
I'm trying to take a user-entered string, and convert any system
variables to their contents for use in my program. What's a good way
to accomplish this with as few libraries as possible? In other words,
how would I translate "$HOME/Notebooks" to "/home/matt/Notebooks" ?
I'm trying to do this with gcc with plain ole C code on a linux box -
but it would be nice if this was generic enough to work on all
compilers.
thank you!
-M
- Next message: Joe Beanfish: "Re: Understanding gdb"
- Previous message: Christophe Le Gal: "Re: XClearArea and XDrawString problem"
- Next in thread: Richard Heathfield: "Re: Linux/C/getenv"
- Reply: Richard Heathfield: "Re: Linux/C/getenv"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|