home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / s / smc21lib.lzh / PAD.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-25  |  256 b   |  16 lines

  1.  
  2. #define NOCCARGC
  3. /*
  4. ** Place n occurences of ch at dest.
  5. */
  6. pad(dest, ch, n) char *dest, *n; int ch; {
  7.   /*n is a fake unsigned integer*/
  8.   while(n--) *dest++ = ch;
  9.   }
  10.  
  11.  
  12.  
  13.  d, t; d=0;
  14.   *nbr=0;
  15.   while((*octstr>'0')&(*octstr<='7')) {
  16.     t