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 ); } }
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; }
inline int CCompiler::EOS () { return (EOL() || TestChar(':')); }
inline int CCompiler::EOL () { return (TestChar(39) || TestChar(0)); }