home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │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);
- }
-
-