| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.10

 

rightfill

#include "sflstr.h"
char *
rightfill (
    char *strbuf,
    char chrtofill,
    unsigned len)

Synopsis

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

Source Code - (sflstr.c)

{
   while (strlen (strbuf)< len)
     {
       insertchar (strbuf, chrtofill, strlen (strbuf));
     }

   return strbuf;
}

| << | < | > | >> iMatix Copyright © 1996-99 iMatix Corporation