title: Accessing the results array from sqlite3_get_table
body: <p>I'm using Ansi C and <code>sqlite3_get_table</code>; everything works except I can't access the query results vector passed as a pointer to an array. Here's my code...</p>
  
  <pre><code>char **sql_results;
  
  sqlite3_get_table(open_database, sql_query,
          &amp;sql_results, &amp;RecordCount, &amp;ColumnCount, &amp;error_msg);
  
  for (int i = 0; i &lt;= (RecordCount + 1)* (ColumnCount); i++)
      printf("%10d %10s\n",i, sql_results[i]);  //get "EXC BAD ACCESS" message
  </code></pre>
  
  <p>How do I fix <code>sql_results[i]</code>? Thanks.</p>