Advertisement
chunkyguy

C nostalgia

Feb 6th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char ***vals = (char ***)malloc(sizeof(char **) * [dataArr count]);
  2. for(int j = 0; j < [dataArr count]; ++j){
  3.     vals[j] = (char **)malloc(sizeof(char *) * [namesArr count]);
  4.     for(int i = 0; i < [namesArr count]; ++i){
  5.         vals[j][i] = [[[dataArr objectAtIndex:j] objectAtIndex:i] cStringUsingEncoding:NSASCIIStringEncoding];
  6.     }
  7.     HTML_col_push(h, HTML_row_make([namesArr count], vals[j]) );
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement