home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / c / pcw_c.zip / WBLKWRT.C < prev    next >
Text File  |  1990-01-16  |  926b  |  25 lines

  1. /***********************************************************/
  2. /* File Id.                  Wblkwrt.C                     */
  3. /* Author.                   Stan Milam.                   */
  4. /* Date Written.             05/15/89.                     */
  5. /*                                                         */
  6. /*          (c) Copyright 1989-90 by Stan Milam            */
  7. /*                                                         */
  8. /* Purpose.  To write an array of pointers to char to a    */
  9. /* window in one fell swoop.                               */
  10. /***********************************************************/
  11.  
  12. #include <stdio.h>
  13. #include "pcwproto.h"
  14.  
  15. int w_block_write(WNDPTR *wnd, int row, int col, char *wrkstr[]) {
  16.  
  17.    int lcv, rc;
  18.  
  19.    for (lcv = 0; (wrkstr[lcv] != NULL); lcv++) {
  20.        rc = wputs(wnd, lcv+row, col, wrkstr[lcv]);
  21.        if (rc == 0) return(rc);
  22.    }
  23.    return(1);
  24. }
  25.