home *** CD-ROM | disk | FTP | other *** search
- /*
- * frcwrts.c
- * contains: frcwrts()
- *
- */
-
- #include <stdio.h>
- #include <string.h>
- #include "gfuncts.h"
-
-
- /*
- * void
- * frcwrts(int cols,int attr,char *string)
- *
- * ARGUMENT
- * cols - Number of columns to center on.
- * attr - Attribute to use when writing.
- * string - String to be centered.
- *
- * DESCRIPTION
- * The string is centered on a width which is the lesser of "cols" or the
- * global variable gmaxcol on the current row and displayed with the
- * specified attribute.
- *
- * RETURNS
- * void
- *
- * AUTHOR
- * "" 20-DEC-1988 10:36:53.53
- * Copyright (C)1988-1990 Greenleaf Software Inc. All Rights Reserved.
- *
- * MODIFICATIONS
- *
- *
- */
- void GF_CONV frcwrts(cols,attr,string)
- int cols,attr;
- char *string;
- {
-
- int icols;
-
- icols=xmin(cols,gmaxcol);
- if(icols<=1)
- return;
- fratwstr((getcur(0)>>8)&0x00ff,(icols/2)-(strlen(string)/2),attr,string);
- }
-