18 const int INPUT_LINE_LENGTH_EMPTY=75;
20 for(
long i=0; i<INPUT_LINE_LENGTH_EMPTY-1; ++i)
24 chTitle[INPUT_LINE_LENGTH_EMPTY-1] =
'\0';
35 if( strncmp( s,
"##", 2 ) == 0 )
37 else if( strncmp( s,
"//", 2 ) == 0 || s[0] ==
'%' )
42 else if( lgColumn0 && s[0] ==
'*' )
47 else if( !lgColumn0 && s[0] ==
';' )
52 else if( lgReportVisible && s[0] ==
'#' )
63 if( strncmp( s,
"C ", 2 ) == 0 )
86 if( chLine[0] ==
'\n' || chLine[0] ==
'\r' || chLine[0] ==
'\0' || chLine[0] ==
' ' )
88 else if( strncmp( chLine,
"***", 3 ) == 0 )
102 for(
size_t p=0; p < s.length(); )
104 bool lgColumn0 = ( p == 0 );
119 else if( s[p] ==
'_' )
124 else if( s[p] ==
'[' || s[p] ==
']' )
136 for(
size_t p=0; p < s.length(); ++p )
138 if( s[p] ==
'\n' || s[p] ==
'\r' )
152 size_t GetString(
const string& s,
size_t p,
string& buf )
159 for( ++p; p < s.length(); )
163 else if( s[p] ==
'\"' )
166 buf.push_back( s[p++] );
201 for(
long i=0; i <=
nSave; ++i )
231 strcpy( chCardComment,
chCardSav[nRead] );
239 fprintf(
ioQQQ,
"t_input::readarray returns=%s=\n", chCardComment );
262 vec.push_back(tmpValue);
266 *lgError = !ioDATA.eof();
280 for(
long i=0; i < n; ++i )
283 *lgEOF = !ioDATA.good();
FILE * open_data(const char *fname, const char *mode, access_scheme scheme)
NORETURN void TotalInsanity(void)
const ios_base::openmode mode_r
const int INPUT_LINE_LENGTH
#define DEBUG_ENTRY(funcname)
int fprintf(const Output &stream, const char *format,...)