String operation helpers
[MiniGUI-Processes specific functions]

Functions


Function Documentation

char * strnchr ( const char *  s,
size_t  n,
int  c 
)

Locates character in the first n characters of string s.

Parameters:
s The pointer to the string.
n The number of first characters will be searched.
c The expected character.
Returns:
Returns a pointer to the first occurrence of the character c in the string s.
See also:
strchr(3)
char * strtrimall ( char *  src  ) 

Deletes all space characters.

This function deletes the blank space, form-feed('\f'), newline('\n'), carriage return('\r'), horizontal tab('\t'),and vertical tab('\v') in the head and the tail of the string.

Parameters:
src The pointer to the string.
Returns:
Returns a pointer to the string.
int substrlen ( const char *  text,
int  len,
int  delimiter,
int *  nr_delim 
)

Locates a substring delimited by one or more delimiters in the first len characters of string text.

Parameters:
text The pointer to the string.
len The number of first characters will be searched.
delimiter The delimiter which delimites the substring from other.
nr_delim The number of continuous delimiters will be returned through this pointer.
Returns:
The length of the substring.
See also:
strstr(3)
Generated on Thu Apr 7 15:58:39 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3