Author: Michel Langeveld
Date: 12:49:14 06/29/03
Go up one level in this thread
I saw that it includes also utility.h is included where resides the function
rtrim.
Here it is:
void rtrim(char *s)
{
for (int lengte = strlen(s)-1; lengte >= 0; lengte--)
{
if (s[lengte] == '\n' || s[lengte] == '\t' || s[lengte] == ' ')
{
s[lengte] = '\0';
}
else
{
break;
}
}
}
Let me know if you miss more.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.