Mail Archives: djgpp/2001/09/30/16:34:13
Hello.
Radical, NetSurfer wrote:
> in my humble opinion, its NONstandard that Libc doesn't already have
> this. Please name one other C/C++ compiler that also omits it?
libc is not necessarily distributed with the C compiler. DJGPP's libc is
not distributed with the DJGPP port of libc. You need to install djdev to
get DJGPP's libc and then gcc to get the C compiler.
'strrev' does not appear to be present on my RedHat Linux 6.2 box:
iolanthe:~ =] grep strrev `find /usr/include -name '*.h'`
/usr/include/glib.h:void g_strreverse (gchar
*string);
glib.h is from glib.
iolanthe:~ =] rpm -q glibc
glibc-2.1.3-22
glibc is GNU libc, the standard libc on Linuces.
If you're that bothered, you may want to use the g_strreverse() function
from glib - get v2tk/glb1210b.zip from the DJGPP archive on Simtel.NET.
I don't see why 'strrev' function should be in DJGPP's libc. It's
non-standard (neither ANSI nor POSIX). You can get an equivalent function
from glib, which is a pretty popular add-on library. If you're that
bothered, why not just include your own implementation in your programs?
Bye,
--
Richard Dawe
http://www.phekda.freeserve.co.uk/richdawe/
- Raw text -