FireBirdLib - Topfield TMS PVR TAP Programming Library
RTrim.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
libFireBird.h
"
3
4
// take off spaces from a string's end
5
char
*
RTrim
(
char
*s)
6
{
7
TRACEENTER
();
8
9
char
*p;
10
11
if
(s)
12
{
13
if
((p = strrchr(s,
'\0'
)))
14
{
15
p--;
16
17
while
(p > s && *p ==
' '
) p--;
18
19
*++p =
'\0'
;
20
}
21
}
22
23
TRACEEXIT
();
24
return
s;
25
}
RTrim
char * RTrim(char *s)
Definition:
RTrim.c:5
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
string
RTrim.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3