NAME

rset - copy string in place, right-justified

SYNOPSIS

#include <basic/string.h>

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

DESCRIPTION

Rset 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 right-justified and the target is padded on the left with blanks. 

This function implements the RSET statement. 

SEE ALSO

rset(stmt)

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber