Mail Archives: djgpp/1999/08/24/07:22:45
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 -