At 08:58 PM 3/4/00 -0500, you wrote: > > > Just a quick question. Is there any way to find out what directory > > > your program is currently running in? > > sprintf(buf, "cd > currdir.tmp"); > > system(buf); >What a waste of a system call! > > man getcwd > >That will do _exactly_ what you want. That snuck in on me through the years :) Ignore my statement that there is no clean way..... +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 04/10/01 PDT