/* MKSTR.C - Makes A String Of Character 'c' Having Length 'n' Up To Maximum Length String Allowed In System Last Modified: 06/11/86 Copyright (C) 1986, T.A. Daneliuk */ #include <system.h> #include <t&r.h> char *mkstr(c,n) char c; int n; { static char string[MAXSTRING+1]; int count; for (count=0;count<=((n<=MAXSTRING) ? (n-1):(MAXSTRING-1));count++) string[count]=c; string[count]='\0'; return(string); }