www.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Trace-PostClient-IP: | 68.147.131.211 |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: About chdir() |
Organization: | Systematic Software |
Message-ID: | <ii9rl0t3kkhc2abo97ctvuiut5jdhen252@4ax.com> |
References: | <bd472b6d DOT 0409300315 DOT b599807 AT posting DOT google DOT com> <2s33rfF1gghltU1 AT uni-berlin DOT de> <bd472b6d DOT 0409302156 DOT 203cfb5 AT posting DOT google DOT com> |
X-Newsreader: | Forte Agent 1.93/32.576 English (American) |
MIME-Version: | 1.0 |
Lines: | 22 |
Date: | Fri, 01 Oct 2004 18:51:16 GMT |
NNTP-Posting-Host: | 24.71.223.147 |
X-Complaints-To: | abuse AT shaw DOT ca |
X-Trace: | pd7tw1no 1096656676 24.71.223.147 (Fri, 01 Oct 2004 12:51:16 MDT) |
NNTP-Posting-Date: | Fri, 01 Oct 2004 12:51:16 MDT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On 30 Sep 2004 22:56:46 -0700 in comp.os.msdos.djgpp, vyom2k4 AT yahoo DOT com (Vyom) wrote: >Also, > >How should I use the CD command in system() > >system("cd \"program files\" "); > >or should the space be escaped? Use the chdir() and getcwd() functions instead, just like in the example program posted above. Escapes to system() only affect the spawned shell environment and not the program! Read 'info libc a system' for more details: this function is highly customized for DJGPP. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |