string reverse function strrev() not present in GNU C

192 views
Skip to first unread message

surya

unread,
Jun 18, 2011, 6:41:41 AM6/18/11
to cpp-pro...@googlegroups.com
I unfortunately found that GNU C compiler doesn't have strrev() function which is used to reverse a string.
What should I do.. Can you provide a function which does this job.

Beyeler Studios

unread,
Jun 18, 2011, 10:30:06 AM6/18/11
to cpp-pro...@googlegroups.com
depending on what you're doing and if you're working with std:string I suggest you check out std::string::rbegin and std::string::rend or std::reverse from <algorithm>
Reply all
Reply to author
Forward
0 new messages