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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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>