home *** CD-ROM | disk | FTP | other *** search
- /* Sample of "strin.o", linked with strin.o vircon.o symbol.o
- By SAKU */
- #include <stdio.h>
- #include <egb.h>
- #include "strin.h"
- #include "vircon.h"
-
- #define ERR 1
- #define NOERR 0
-
- char egbwork[1536];
-
- int main()
- {
- char str[256];
- int n;
-
- EGB_init( egbwork, 1536 );
- EGB_resolution( egbwork, 1, 3 );
- EGB_writePage( egbwork, 1 );
- EGB_displayPage( egbwork, 0, 3 );
- VC_init( egbwork, 0, 240, 60, 8, 15, 1 );
- VC_printf( "[ESC] 終了\n" );
- ST_locate( 100, 100 );
- n = 10;
- while( n > 0 )
- {
- switch( ( n = ST_inputStrings( egbwork, str, 256, "何か文字列を入力して下さい" ) ) )
- {
- case -3:
- VC_printf( "input abort!\n" );
- break;
- case 0:
- VC_printf( "input = (NULL)\n" );
- break;
- default:
- VC_printf( "input = %s\n入力文字数 = %d\n", POINTER, str, L_INT, n );
- break;
- }
- }
-
- EGB_writePage( egbwork, 0 );
- screenterm( egbwork );
-
- return NOERR;
- }