NAME

lset - copy string in place, left-justified

SYNOPSIS

#include <basic/string.h>

lset(buf, str)
struct string *buf, *str;

DESCRIPTION

Lset copies the string pointed to by str into the string pointed to by buf.  The copy is performed in place, i.e., without re-allocating or moving the text buffer of the target string.  This facilitates the manipulation of random buffer fields.  If the source string str is longer than the target string buf, the copy is truncated; if the source is shorter than the target, the text is left-justified and the target is padded on the right with blanks. 

This function implements the LSET statement. 

SEE ALSO

lset(stmt)

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber