NAME

trimS - trim leading and trailing blanks

SYNOPSIS

#include <basic/string.h>

struct string ltrimS(s)
struct string *s;

struct string rtrimS(s)
struct string *s;

DESCRIPTION

LtrimS allocates and returns a copy of the string pointed to by s with any leading blanks (space characters) removed.  If the original string contains no non-blanks, the null string is returned.  This function implements the BASIC LTRIM$ function. 

RtrimS allocates and returns a copy of the string pointed to by s with any trailing blanks (space characters) removed.  If the original string contains no non-blanks, the null string is returned.  This function implements the BASIC RTRIM$ function. 

SEE ALSO

string(inc)
ltrim$(func), rtrim$(func)

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber