RE: GCC and getcwd

2002-02-01 Thread Francis Harvey
2 1:21 PM > To: '[EMAIL PROTECTED]' > Subject: GCC and getcwd > > > Greetings, > > This isn't directly a cygwin question, but hopefully somebody has a > suggestion or a new topic I should search on: > > I have a working C program created with GCC 2.95

Re: GCC and getcwd

2002-02-01 Thread Barubary
> >This is not the Unix way to do things. The Unix API does not provide any way for a process to find out where its executable image is located (it might not exist anymore!) See: > >http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC23 This isn't the Windows NT way to do things, either. Process

Re: GCC and getcwd

2002-01-31 Thread Larry Hall (RFK Partners, Inc)
At 05:55 PM 1/31/2002, Sami Tikka wrote: >Francis Harvey wrote: > >>I want to find the current directory that the executable file is in, >>so I can open a text file in the same directory. The executable >>is on the k drive, but my code doesn't return the correct path: > >This is not the Unix way

Re: GCC and getcwd

2002-01-31 Thread Sami Tikka
Francis Harvey wrote: > I want to find the current directory that the executable file is in, > so I can open a text file in the same directory. The executable > is on the k drive, but my code doesn't return the correct path: This is not the Unix way to do things. The Unix API does not provide a

GCC and getcwd

2002-01-31 Thread Francis Harvey
Greetings, This isn't directly a cygwin question, but hopefully somebody has a suggestion or a new topic I should search on: I have a working C program created with GCC 2.95.2-6 and Cygwin dll 1.1.7. I realize both of these are a little old, but I think I have a conceptual problem rather than a