home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / GRLF-C-2.ZIP / GFUNC / FRWRTF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-30  |  976 b   |  56 lines

  1. /*
  2.  * frwrtf.c
  3.  * contains: frwrtf()
  4.  *
  5.  */
  6.  
  7. #include <stdio.h>
  8. #include "gfuncts.h"
  9.  
  10.  
  11. /*
  12.  *  void
  13.  * frwrtf(int attribute,char *fmt,?arg)
  14.  *
  15.  * ARGUMENT
  16.  *  attribute      -    physical video attribute to use
  17.  *  fmt        -    format string
  18.  *  arg        -    variable argument list
  19.  *
  20.  * DESCRIPTION
  21.  *  Write formated and attributes at cursor.
  22.  *
  23.  * RETURNS
  24.  *  void
  25.  *
  26.  * AUTHOR
  27.  *  ""   20-DEC-1988  09:38:43.45
  28.  *   Copyright (C)1988-1990 Greenleaf Software Inc. All Rights Reserved.
  29.  *
  30.  * MODIFICATIONS
  31.  *
  32.  *
  33.  */
  34.  
  35. #ifndef    _MSC
  36. void GF_CDECL frwrtf(attr,fmt)
  37. #else
  38. void GF_CDECL frwrtf(attr,fmt,...)
  39. #endif
  40. char *fmt;
  41. int attr;
  42. {
  43.     char **value;
  44.     value=&fmt;
  45.     sprintf(_gfspbuf,fmt,
  46.         value[1],value[2],value[3],value[4],value[5],value[6],
  47.         value[7],value[8],value[9],value[10]
  48. #ifndef _LDATA
  49.         ,value[11],value[12],value[13],value[14],value[15],value[16],
  50.         value[17],value[18],value[19],value[20]
  51. #endif
  52.     );
  53.     frwstr(attr,_gfspbuf);
  54. }
  55.  
  56.