char *ClearEnd( char *cp ) /*** ClearEnd deletes all spaces that appear at the end of a string and returns a pointer to the string. Generously donated into the public domain by: Chris Collins 15 Faculty Row Greenville, SC 29609 Parameter Type In/out Description cp char ptr in The buffer containing the string ***/ { char *end = cp + strlen( cp ) - 1; while ( *end < 33 ) *end-- = 0; return( cp ); }