- Joined
- 5 Dec 2001
- Messages
- 6,498
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--;
}