42 lines
723 B
C
42 lines
723 B
C
#include "b2hd.h"
|
|
|
|
typedef struct values
|
|
{
|
|
int allValues[1000][8];
|
|
}values;
|
|
|
|
values getArray(){
|
|
values tab;
|
|
char *token;
|
|
char buffer[200];
|
|
char *pbuff;
|
|
int value;
|
|
|
|
/*fscanf(stdin, "%s", buff);
|
|
printf(buff);
|
|
token = strtok(buff , ",");
|
|
printf(token);
|
|
int i = 0 ;
|
|
int j = 0 ;*/
|
|
int i = 0;
|
|
while(1){
|
|
|
|
if (!fgets(buffer, sizeof buffer, stdin)) break;
|
|
|
|
printf("Line contains : %s", buffer);
|
|
pbuff = buffer;
|
|
|
|
/*hile (1) {
|
|
if (*pbuff == '\n') break;
|
|
|
|
value = strtol(pbuff, &pbuff, 10);
|
|
//printf("%d", value);
|
|
}
|
|
printf("\n");*/
|
|
}
|
|
}
|
|
|
|
int main(int argc , char** argv){
|
|
getArray();
|
|
}
|