示例#1
0
文件: main.c 项目: pahoughton/pah-poc
int
main( int argc, char * argv[] )
{
  size_t    count = 1;
  
  int	    fd;
  size_t    size = ( (4096 * 2) * 10240 ) ; /* 80 meg */
  caddr_t   map;

  for( ;; ++ count )
    {
      if( (count % 10) == 0 )
	printf( "%d iterations.\n", count );
      
	  
      remove( FileName );
      
      if( (fd = open( FileName, O_RDWR | O_CREAT, 0666 ) ) < 0 )
	{
	  perror( "open" );
	  exit( 1 );
	}

      map = MapIt( fd, size );

      TestLongs( map, size );
      TestChar( map, size ); 

      UnMap( fd, map, size );
    }
}
示例#2
0
ErrCode TestCall (int iAantalPars, char **ppcAdressenPars)
{
	ErrCode fout = NO_ERR;
	if (iAantalPars != NUM_OF_PARS) 
	{
		fout = ERR_PARS;
	}
	else
	{
		fout = TestType(ppcAdressenPars[1]);
		if (fout == NO_ERR)
		{
			fout = TestNr(ppcAdressenPars[2]);
		}
		if (fout == NO_ERR)
		{
			fout = TestChar(ppcAdressenPars[3]);
		}
	}
	return fout;
}
int main() {
  TestChar("ľ");
  TestChar("\xe2\xb0\xbf");

  return 0;
}
示例#4
0
inline int CCompiler::EOS ()
{ return (EOL() || TestChar(':')); }
示例#5
0
inline int CCompiler::EOL ()
{ return (TestChar(39) || TestChar(0)); }