Category : C Source Code
Archive   : SMTC130.ZIP
Filename : REPCHAR.DOC

 
Output of file : REPCHAR.DOC contained in archive : SMTC130.ZIP


NAME
repchar -- repeat a character n times to fd

SYNOPSIS
void repchar(chr, qty, fd);
char chr; character to send
int qty; number of characters to send
FILE *fd; file descriptor of output channel

DESCRIPTION
This function sends qty number of chr to fd, which is usually
stdout, stderr, or an open file. Maximum qty is 128.
If qty > 128, it will be truncated to 128. This limit is due
to an internal string buffer. For speed, the string is filled
and then fputs() is called to output the data as a string.

EXAMPLE

repchar('X', 50, stdout);

to output a double horizontal line:
#include "graphics.h"
repchar(DHLINE, 50, stdout);












This function is found in SMTCx.LIB for the Turbo-C Compiler.


  3 Responses to “Category : C Source Code
Archive   : SMTC130.ZIP
Filename : REPCHAR.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/