home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
328_02
/
wfvall.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-17
|
704b
|
38 lines
/* WFORMCHK.C
* This file contains wfvall
*
* This function can be named in the header line of a WFORM table
* It loops through the table and calls all the data validation funcs
* If any data is invalid, it returns (1) else (0)
*
*
*/
#include "wsys.h"
int wfvall (WFORM *form, char *buffer)
{
int rc =0;
while ( (form)->wflabel != NULL )
{
if ( form->wfvalidate != NULL )
{
rc += (*form->wfvalidate)(form, buffer);
}
/* move to next spot in buffer
* ( data for next form line
*/
buffer += form->wflen;
++form;
}
return (rc); /* wfvall */
}
/*-------------------- end WFORMCHK.C ------------------------------*/