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 PostA very simple function. Here's a sample program:
#include <stdio.h> #include <string.h> int main() { int i, j, temp; char s[]="Once a jolly swagman"; i=0; j=strlen(s) - 1; while(i < j) { temp = s[i]; s[i++] = s[j]; s[j--] = temp; } printf("\n\n New string is: %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.