On 26 Oct 2000, at 10:53, the Illustrious Kolari S. Bhat wrote:
> In all references I looked so far, the getcwd() function is
> declared as follows:
> char *getcwd (char *Buffer, size_t Size)
Hmmm...which mingw release are you using? I checked the io.h
file that I have (actually referenced as a snapshot, Mingw
msvcrt release gcc-2.95.2-1 from January of 2000 is actually
My io.h refers to getcwd as follows:
for searching for files:
char* _getcwd (char*, int);
for non unix-windows builds:
char* getcwd (char*, int);
> However, MinGW declared this function in io.h with the second
> parameter as an int.
> char* getcwd (char* caBuffer, int nBufferSize);
> This prototype change is causing incompatibility when porting the
> code between compilers. Is there any special reason for MinGW
> deviating from the standard; could this be a bug? This is my
> first post to this list; please excuse me if this has already
> been asked before.
I encourage you to download the gcc-2.95.2-1 snapshot
Nothing real can be threatened.
Nothing unreal exists.