• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Guess what the function's name is

X-Istence

*
Political User
#1
All I can tell you about the below function is that it takes a char * a, as it's only argument, and manipulates the character array string in a certain way. Can you guess the name of the function, and or tell me what it does?

Code:
        char * first;
        char * last;
        
        first = a;
        while ( *(a++) != 0 )
                last = a;
        
        last--;
        while ( first != last ) {
                if ( *first != *last ) {
                        *first ^= *last;
                        *last  ^= *first;
                        *first ^= *last;
                }
                
                first++;
                last--;
        }
 

Members online

No members online now.

Latest posts

Latest profile posts

Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,961
Messages
673,239
Members
89,013
Latest member
Pdawgintown