| iMatix home page | << | < | > | >> |
SFL Version 2.10 |
#include "sflstr.h" char * rightfill ( char *strbuf, char chrtofill, unsigned len)
Pads a string to the right, to a known length, with the given char value. Returns a pointer to head of the buffer. Submitted by Scott Beasley jscottb@infoave.com
{ while (strlen (strbuf)< len) { insertchar (strbuf, chrtofill, strlen (strbuf)); } return strbuf; }
| << | < | > | >> | Copyright © 1996-99 iMatix Corporation |