7 /* skip leading whitespace
9 /* #include <stringops.h>
11 /* char *trimblanks(string, len)
15 /* trimblanks() returns a pointer to the beginning of the trailing
16 /* whitespace in \fIstring\fR, or a pointer to the string terminator
17 /* when the string contains no trailing whitespace.
18 /* The \fIlen\fR argument is either zero or the string length.
22 /* The Secure Mailer license must be distributed with this software.
25 /* IBM T.J. Watson Research
27 /* Yorktown Heights, NY 10598, USA
35 /* Utility library. */
37 #include "stringops.h"
39 char *trimblanks(char *string
, int len
)
46 for (curr
= string
; *curr
!= 0; curr
++)
49 while (curr
> string
&& ISSPACE(curr
[-1]))