Date: Tue, 24 Aug 1999 09:22:42 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Klaus Reinhardt cc: djgpp AT delorie DOT com Subject: Re: How to get both! filenames? In-Reply-To: <37C08B3E.3551@TU-Berlin.DE> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 22 Aug 1999, Klaus Reinhardt wrote: > Thanks once more; now it works, but I don't know if my invocation > of _truename is correct, 'cause I only got help from the stat.h. > (Which doc-file should I download? You already have it:" it's libc.info in your info sundirectory. For example, to read the documentation of _truename, you type this from the DOS prompt: info libc alpha _truename This assumes that you have the GNU Texinfo package installed (that's where info.exe comes from). If not, download and install v2gnu/txi312b.zip from your favorite SimTel.NET mirror. And please read chapter 5 of the DJGPP FAQ list, it explains how to read the documentation supplied with the various DJGPP packages. You will be lost without the docs. > printf("\t\t%s\n",_truename(argv[i],argv[i])); > ??????????????? This is not a good idea. It is better to pass a different buffer as the second argument, then replace argv[i], like this: char true_path[FILENAME_MAX]; ... argv[i] = _truename (argv[i], true_path);