Mail Archives: djgpp/2003/02/09/01:06:13
On Sun, 9 Feb 2003, Jason Kircher wrote:
> Of course, those examples have custom
> comparison functions written in the example. Nothing using the standard
> string comparison functions given in <string.h>, which I used.
I think you didn't look into the examples well enough. The following
comparison function from the example _does_ use `strcmp', and that is how
you are supposed to use `qsort' in your case without getting warnings:
int qsort_stringlist(const void *e1, const void *e2)
{
return strcmp(*(char **)e1, *(char **)e2);
}
In other words, you need to write an interface function that casts the
arguments and calls `strcmp'.
> Of course, info is a pain to use...
Only if you didn't take a few minutes to study it, which is highly
recommended. It has superior methods of finding things quickly that will
blow any Web browser out of the water.
If you want a more graphic UI to Info, read section 5.1 of the DJGPP FAQ
list, it mentions several Info readers with a more familiar UI.
> Is there a program that can convert texinfo files into HTML files -
> usable by lynx? I'd love to do that to ALL of the texinfo files. :D
Get the *d.zip files for every package you downloaded, the docs formatted
as HTML are already there.
But I urge you to invest a little more time in learning Info, since it
will let you find things much more efficiently. For starters, read the
section about Info in the README.1ST file. HTML format doesn't give you
the index search or the TAB-completion on available topics, two of the
more important features of Info.
- Raw text -