const char* reverse(char* text) { int len = sk::strlen(text); for(int i = 0; i < len/2; i++) { sk::swap(text[i], text[len-i-1]); } return text; }