home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / putraw.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-04  |  744 b   |  34 lines

  1. #ifndef NO_IDENT
  2. static char *Id = "$Id: putraw.c,v 1.4 1995/06/04 17:08:54 tom Exp $";
  3. #endif
  4.  
  5. /*
  6.  * Title:    putraw.c
  7.  * Author:    Thomas E. Dickey
  8.  * Created:    12 Nov 1984
  9.  * Last update:
  10.  *        03 Jun 1995, prototyped
  11.  *
  12.  * Function:    Print a null-ended string on the terminal.  Unlike 'printf',
  13.  *        this VMS function will not be confused by backspaces.  (The
  14.  *        problem with 'printf' is that it does not track backspaces
  15.  *        when determining the wraparound column.)
  16.  */
  17.  
  18. #include    <descrip.h>
  19. #include    <string.h>
  20.  
  21. #include    "crt.h"
  22.  
  23. extern    void    lib$put_screen(struct dsc$descriptor_s *p);
  24.  
  25. void
  26. putraw (char *s_)
  27. {
  28.     static $DESCRIPTOR(DSC_bell," ");
  29.  
  30.     DSC_bell.dsc$a_pointer = s_;
  31.     DSC_bell.dsc$w_length = strlen(s_);
  32.     lib$put_screen (&DSC_bell);
  33. }
  34.