User manual
726
mikoC PRO for dsPIC
MikroElektronika
Rtrim
Prototype
char *Rtrim(char *string);
Description Trims the trailing spaces from array given with *string
Parameters
- string: array to be trimmed.
Returns The function returns the address of the rst non-space character.
Requires Nothing.
Example
char *res;
res = Rtrim(“ mikroe”); // trims the trailing spaces and returns the
address of the rst non-space character
Notes None.
Ltrim
Prototype
char *Ltrim(char *string);
Description 66
Trims the leading spaces from array given with *string
Parameters
- string: array to be trimmed.
Returns The function returns the address of the rst non-space character.
Requires Nothing.
Example
char *res;
res = Ltrim(“ mikroe”); // trims the leading spaces and returns the address
of the rst non-space character
Notes None.