Hi,
I am using ubuntu linux system.In that I am unable to use strrev() function for reversing a string.Is there any library function in linux equivalent to strrev().
Thanks in advance.
challarao 0 Junior Poster in Training
Recommended Answers
Jump to PostCheck your man pages, strrev might actually be present. If not, it's a trivial function to implement for your personal library:
#include <string.h> #define SWAP(T, a, b) \ do { T save = (a); (a) = (b); (b) = save; } while (0) char *reverse_string(char *s) { …
Jump to Post>But what are man pages ....
You program on Linux and don't know how to consult the man pages? Open up a command prompt and type "man". :)>What do you mean by implement...
I mean do it yourself. If the function doesn't exist, write it.
All 8 Replies
Adak 419 Nearly a Posting Virtuoso
Narue 5,707 Bad Cop Team Colleague
challarao 0 Junior Poster in Training
sree_ec 10 Junior Poster
Narue 5,707 Bad Cop Team Colleague
challarao 0 Junior Poster in Training
challarao 0 Junior Poster in Training
sree_ec 10 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.