Category : Files from Magazines
Archive   : DDJSRC.ZIP
Filename : TESTENTR.C

 
Output of file : TESTENTR.C contained in archive : DDJSRC.ZIP
/* ----------- testentr.c --------- */
#include
#include
#include
#include "window.h"
#include "entry.h"

struct config {
char name[36];
char acctno[21];
char password[11];
char phone[15];
} cfg;

static char mask[] = "___________________________________";
static char phmask[] = "(___) ___-____ ext.____";

FIELD pers_template[] = {
{3, 14, 1, cfg.name, mask, NULL},
{4, 14, 1, cfg.acctno, mask+15, NULL},
{5, 14, 1, cfg.password,mask+25, NULL},
{6, 14, 1, cfg.phone, phmask, NULL},
{0}
};

void main()
{
establish_window(15,5,65,12,ENTRYFG,ENTRYBG,TRUE);
window_title(" Personal Data ");
gotoxy(3,3);
cputs("Name:");
gotoxy(3,4);
cputs("Account #:");
gotoxy(3,5);
cputs("Password:");
gotoxy(3,6);
cputs("Phone:");
data_entry(pers_template, TRUE, 1);
delete_window();
return FALSE;
}


  3 Responses to “Category : Files from Magazines
Archive   : DDJSRC.ZIP
Filename : TESTENTR.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/