But return and empty string...any ideas?Code:int lstrlenQ(const char *s) { int i = 0; while(*s) { s++; i++; } return i; } int lReverse(const char *str, char *buffer) { int npos = lstrlenQ(str); const char *p = str + npos; while (npos) { *buffer = *p; buffer++; p--; npos--; } *buffer++ = '\0'; return 0; }