home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / SMALL_C / PAD.C < prev    next >
Text File  |  1987-10-04  |  256b  |  9 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. /*
  3. ** Place n occurrences of ch at dest.
  4. */
  5. pad(dest, ch, n) char *dest, *n; int ch; {
  6.   /* n is a fake unsigned integer */
  7.   while(n--) *dest++ = ch;
  8.   }
  9.