#include <iostream>
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
using namespace std;
int Rep::finish( )
{
- %% write eof;
if ( cs == Rep_error )
return -1;
if ( cs >= Rep_first_final )
return 0;
}
-void test( char *buf )
+void test( const char *buf )
{
Rep rep;
int len = strlen( buf );