home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
JAZLIB
/
JZCNTSTR.C
< prev
next >
Wrap
Text File
|
1993-12-01
|
610b
|
25 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│jzcntstr │
│Return a string padded with blanks on the left so as to center it in a │
│given field width. │
│ │
│ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
└────────────────────────────────────────────────────────────────────────────┘
*/
char *jzcntstr(fstr,fwidth)
char *fstr;
int fwidth;
{
static char wstr[256]; /* static work buffer */
strcpy(wstr,jzpad((fwidth-strlen(fstr)) >> 1,' '));
strcat(wstr,fstr);
return(wstr);
}