- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
20
rmtrail.c
20
rmtrail.c
@ -16,16 +16,14 @@
|
||||
|
||||
char *rmtrail(char *str)
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
|
||||
if (0 != (i = strlen(str)))
|
||||
{
|
||||
while (--i >= 0)
|
||||
{
|
||||
if (!isspace(str[i]))
|
||||
break;
|
||||
}
|
||||
str[++i] = NUL;
|
||||
}
|
||||
return str;
|
||||
if (0 != (i = strlen(str))) {
|
||||
while (--i >= 0) {
|
||||
if (!isspace(str[i]))
|
||||
break;
|
||||
}
|
||||
str[++i] = NUL;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
Reference in New Issue
Block a user