home *** CD-ROM | disk | FTP | other *** search
- /* ==( bench/repchr.c )== */
-
- /* ----------------------------------------------- */
- /* Pro-C Copyright (C) 1988 - 1990 Vestronix Inc. */
- /* Modification to this source is not supported */
- /* by Vestronix Inc. */
- /* All Rights Reserved */
- /* ----------------------------------------------- */
- /* Written Geo 1-Sep-87 */
- /* Modified Geo 11-Dec-89 See comments below */
- /* ----------------------------------------------- */
- /* %W% (%H% %T%) */
-
- /*
- * Modifications
- *
- * 11-Dec-89 Geo - V2 version
- * 25-Oct-89 Geo - 1.32 Merge
- */
-
- /* repchr()
- *
- * Repeat a character N times
- * - returns a pointer to the NULL terminated string
- */
- # include <bench.h>
-
- char *repchr( ch, n)
- char ch;
- int n;
- {
- static char buf[81];
-
- buf[n] = '\0';
- while( n--)
- buf[n] = ch;
- return(buf);
- }
-
-