Richard Bos a écrit :
> (Richard Tobin) wrote:
>
>
>>In article <. com>,
>> <> wrote:
>>
>>
>>>Is there some way in C to retrieve the absolute path name of the
>>>current directory,
>
>
>>There's no portable way to do this in standard C: in fact, C itself
>>doesn't know anything at all about directories. But all operating
>>systems provide a way to do it.
>
>
> All operating systems _where this is possible in the first place_. It is
> not always possible; for example, under very early versions of MS-DOS,
> there was no such thing as a directory. All common modern desktop OSes
> have them, but I would not be surprised at all to learn of embedded ones
> that have files, but no directories, and therefore no path names,
> absolute or relative.
>
> Richard
Nobody cares about those systems. If you would have read what the
original poster wrote, you would have seen the first sentence:
"I've written a piece of code that interfaces with Postgres."
It would be astounding that Postgres runs in an embedded OS with
no directories or under "early MSDOS" isn't it?
But at each question we have to know apparently how we make the
program portable to MSDOS systems without directories, or whatever.
Living in the past is a favorite passtime of people in this group
apparently.