home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 352_01 / wfvpath.cpp < prev    next >
C/C++ Source or Header  |  1991-04-24  |  492b  |  26 lines

  1. /* WFVPATH.C
  2.  *        form entry function to validate data paths
  3.  *        may be either NULL or C:\path\
  4.  *        must end in '\\'
  5.  *        specified path must exist 
  6.  */
  7. #include <stdlib.h>
  8.  
  9. #include "wtwg.h"
  10. #include "dblib.h"
  11.  
  12.  
  13. int wfvpath (WFORM *fm, char *buf)
  14.     {
  15.     int retcode;
  16.     retcode = validate_path ( buf );
  17.     if ( -1 == retcode )
  18.         {
  19.         wform_showerror ( fm, "Path not found" );
  20.         }
  21.     return (retcode);
  22.     }
  23.     
  24.     
  25.     /*----------------------- WFVPATH.C -----------------------------*/
  26.