Mikroelektronika MIKROE-738 Datenbogen

Seite von 682
mikroC PRO for PIC32
MikroElektronika
641
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 first non-space character.
Requires
Nothing.
Example
char *res; 
res  =  Rtrim(“    mikroe”);    //  trims  the  trailing  spaces  and  returns  the 
address of the first 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 first non-space character.
Requires
Nothing.
Example
char *res; 
res = Ltrim(“  mikroe”);  // trims the leading spaces and returns the address 
of the first non-space character
Notes
None.