Xref: news-dnh.mv.net comp.os.msdos.djgpp:1931 Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!news!sandmann From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Surprised by getcwd in v2 Date: Tue, 05 Sep 1995 00:30:46 CDT Organization: NeoSoft Internet Services +1 713 968 5800 Lines: 6 References: Reply-To: sandmann AT praline DOT no DOT NeoSoft DOT com Nntp-Posting-Host: praline.no.neosoft.com To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp > The behavior of v2 getcwd is a little surprising to a DOS programmer: > getcwd returns NULL if passed a NULL buffer. Comments in the code say > that POSIX behavior is undefined in this case. Borland and djgpp 1.x > allocate memory for you if buffer is NULL. libc.inf documents the new Then V2 should to be fixed to be compatible.