delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/24/07:22:45

Date: Tue, 24 Aug 1999 09:22:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Klaus Reinhardt <K DOT Rdt AT TU-Berlin DOT DE>
cc: djgpp AT delorie DOT com
Subject: Re: How to get both! filenames?
In-Reply-To: <37C08B3E.3551@TU-Berlin.DE>
Message-ID: <Pine.SUN.3.91.990824091633.12112M-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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);

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019