[LIP] Who provides strrev?

Shridhar Daithankar <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Persistent Systems Pvt. Ltd.
Message-ID <[email protected]>
Hi all,

Following is an interesting thread on PLUG mailing list. I wonder which standard 
provides function strrev. A guy moving from turbo C to linux is complaining..

-------------------
Kaustubh Gadkari wrote:

 > Dev wrote:
 >
 >> 1. I am using Xemacs and emacs as of now, will havent tried gdb.....
 >> 2. Problem is not of writing strrev() function, problem is of portablity.
 >> Cannot keep on writing code everytime a function is not available...
 >>
 >>
 > Huh? TCC programs are not portable because they use functions that are
 > not part of the standard c library. If you set the compiler options in
 > TCC to ANSi, you won't get strrerv either, neither will you get
 > graphics.h,conio.h etc. It's just a question of what you want. GCC is an
 > ANSI compliant compiler i.e write once, compile anywhere.

I searched around and came up with some interesting URLs.

http://www.gnu.org/software/libc/libc.html

GLibc claims it supports ISO and POSIX. Couldn't find anything for those two 
standards and strrev..

Watcom and Visual C++ seems to be bigger provider of that function.. Check

http://www.oe.fau.edu/~lyann/watcom/clibref/clibover.html
http://www.cygwin.com/ml/cygwin/1997-11/msg00370.html

So far, I haven't seen anything which says strrev is either ISO/POSIX or ANSI. 
Any idea what standard supports it?

For starters, I checked on a linux and a freeBSD system. None of them supports it..

[user-pF/[email protected] user]$ uname -a
Linux machine.intranet.pspl.co.in 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686 
unknown

-bash-2.05b$ uname -a
FreeBSD machine 4.9-STABLE FreeBSD 4.9-STABLE #0: Fri Dec  5 05:29:37 IST 2003 
    root-pF/[email protected]:/usr/obj/usr/src/sys/config  i386

  Shridhar
-------------------







-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.