Category : C Source Code
Archive   : TCCLB2.ZIP
Filename : ALLFIELD.C
int x;
int y;
int Len;
int Type;
char *Address;
int EditFlag;
int NumDecimals;
} FieldStruc;
int FindDown( FieldStruc *Field, int pos, int NUMFIELDS );
int FindLeft( FieldStruc *Field, int pos, int NUMFIELDS );
int FindRight( FieldStruc *Field, int pos, int NUMFIELDS );
int FindUp( FieldStruc *Field, int pos, int NUMFIELDS );
int GetField( FieldStruc *f );
void PutField( FieldStruc *f );
#include
void GetAllFields( FieldStruc *Field, int NUMFIELDS, int (*ChHnd)( int ch ), void (*Update)( void ) )
{
register int pos = 0;
register int key;
for (pos=0; pos
}
pos = 0;
for (;;) {
key = GetField( Field + pos );
Update();
switch( key ) {
case DOWN:
pos = FindDown ( Field, pos, NUMFIELDS );
break;
case UP:
pos = FindUp ( Field, pos, NUMFIELDS );
break;
case RIGHT:
pos = FindRight( Field, pos, NUMFIELDS );
break;
case LEFT:
pos = FindLeft ( Field, pos, NUMFIELDS );
break;
case HOME:
pos = 0;
break;
case END:
pos = NUMFIELDS-1;
break;
default:
if( ChHnd( key ) < 0 ) return;
break;
}
if (pos < 0) pos = 0;
if (pos > NUMFIELDS-1) pos = NUMFIELDS-1;
}
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/