#include "iobuf.h"

int obuf_pad(obuf* out, unsigned width, char ch)
{
  while (width) {
    if (!obuf_putc(out, ch)) return 0;
    --width;
  }
  return 1;
}


syntax highlighted by Code2HTML, v. 0.9.1