home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
POLYEDIT.LZH
/
ML
/
CHECK.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-22
|
672b
|
36 lines
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "data.h"
#include "err.h"
/*
* 引数のチェックルーチン
*/
void ArgCheck( name, args, buf, type1 )
char *name ;
int args ;
DataStruct *buf ;
int type1 ;
{
int i, *types ;
types = &type1 ;
for( i = 0 ; i < args ; i++ )
{
if ( buf->type == TYPE_NOASN )
ExecError( "引数の数が不正です。( %s )", name );
if ( ( buf->type & *types ) == 0 )
ExecError( "%d 番目の引数の型が不正です。( %s )", i+1, name );
buf++ ;
types++ ;
}
if ( *types != TYPE_NOASN )
ExecError( "引数の数が不正です。( %s )", name );
}