#include #include #include #include "textSample.h" struct Vector vect; int hasComment; char *comment; static char buffer[4096] ; int parse(char *, int); int main(){ while(1){ int i, len; fgets(buffer, 4096, stdin); if(feof(stdin)) break; for(i=0;i<4096;i++){ if( buffer[i] == '\r' ) buffer[i] = 0; } buffer[4096-1] = 0; len = 8*strlen(buffer); parse(buffer, len); } return 0; } void userProgram() { int i; char *name = vect.name; int order = vect.order; int *value = vect.value; printf( "Vector %s(%d) ", name, order ); for(i=0; i