| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflstr.h" char * leftfill ( char *strbuf, char chrtofill, unsigned len)
Pads a string to the left, to a know 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, 0); } return strbuf; }
| << | < | > | >> |
![]() |