Category : C Source Code
Archive   : WTWG12B.ZIP
Filename : WFVDATE.C

 
Output of file : WFVDATE.C contained in archive : WTWG12B.ZIP
/* wfvdate.c
* form entry validation of dates and times
*
* wfvdate may be placed in a WFORM description table
* PARAMETERS: ptr to form description entry
* ptr to buff containing user input.
* buff must be larg enough for mm/dd/yyyy = 11 bytes.
* RETURNS: 0 if date is valid.
*
*
*/

#include "wsys.h"


int wfvdate ( WFORM *form, char *entrybuff )
{
int retcode = wval_date ( entrybuff );
if ( retcode != 0 )
{
wform_showerror ( form, "Invalid date, should be mm/dd/yyyy" );
}
return (retcode); /* wfvdate */
}
/*------------------- end of WFVDATE.C -----------------*/

  3 Responses to “Category : C Source Code
Archive   : WTWG12B.ZIP
Filename : WFVDATE.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/