Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1.  for(i=0; i<ROWS; i++)
  2.     {
  3.         fgets(LineIn, 500, stdin);
  4.         table[i] = calloc(COLUMNS, sizeof(char*));
  5.         for(j=0; j<COLUMNS; j++)
  6.         {
  7.  
  8.             table[i][j] = calloc(MAX_STRING_SIZE, sizeof(char));
  9.         }
  10.        
  11.         sscanf(LineIn, "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s",table[i][0], table[i][1], table[i][2], table[i][3], table[i][4], table[i][5], table[i][6], table[i][7], table[i][8]);
  12.  
  13.  
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement