also, below is what i need to get working. once thats done, the entire
app would work.
char *strtok2(char * string, const char * control);
char *strtok2( char * string, const char * control )
{
unsigned char *str;
const unsigned char *ctrl = (unsigned char *)control;
unsigned char map[32];
int count;
static char *nextoken;
for (count = 0; count < 32; count++)
map[count] = 0;
do {
map[*ctrl >> 3] |= (1 << (*ctrl & 7));
} while (*ctrl++);
if (string)
str = (unsigned char *)string;
else
str = (unsigned char *)nextoken;
//To make strtok2() _not_ skip over multible delimiters, just
comment out this while()!
// while ( (map[*str >> 3] & (1 << (*str & 7))) && *str )
str++;
string = (char *)str;
for ( ; *str ; str++ )
if ( map[*str >> 3] & (1 << (*str & 7)) ) {
*str++ = '\0';
break;
}
nextoken = (char *)str;
if ( string == (char *)str )
return '\0';
else
return string;
}
these are the 4 errors im getting now:
error: 'std::ios_base::ios_base(const std::ios_base&)' is private
error: within this context
error: 'std::basic_streambuf<_CharT, _Traits>::basic_streambuf(const
std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits =
std::char_traits<char>]' is private
error: within this context


|