Commit ac2b30a7 authored by rswindell's avatar rswindell
Browse files

lastchar() doesn't return const char* now.

parent 24900018
......@@ -58,16 +58,16 @@
/****************************************************************************/
/* Return last character of string */
/****************************************************************************/
const char* DLLCALL lastchar(const char* str)
char* DLLCALL lastchar(const char* str)
{
size_t len;
len = strlen(str);
if(len)
return(&str[len-1]);
return((char*)&str[len-1]);
return(str);
return((char*)str);
}
/****************************************************************************/
......
......@@ -123,7 +123,7 @@ extern "C" {
#endif
#endif
DLLEXPORT const char* DLLCALL lastchar(const char* str);
DLLEXPORT char* DLLCALL lastchar(const char* str);
/****************************/
/* Common Utility Functions */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment