MVI-ADMNET
♦
'C' Programmable
WATTCP API Functions
Ethernet Module
Page 82 of 90
ProSoft Technology, Inc.
December 13, 2006
rip
Syntax:
Char * rip( char *String );
Parameters:
String
Array of character string.
Description:
This function is used to strip out carriage return and line feed. If there are more
than one carriage return or line feed, the first one will be replace with 0 and the
rest of them will not be defined.
Return Value:
Pointer to the new string.
Example:
char s;
. . .
s = sock_dataready("This is a test\n\r");
printf("%s", s);