title: SQLite3 : Assigned directly the query result to a struct in C
body: <p>I searched in the Web but could not find any solutions for my problem.
  I have a table user_info with fields user_id, username, password.
  Also I have a struct st_user_info.</p>
  
  <pre><code>typedef struct {
       int userId;
       char* userName;
       char* password;
  } T_USERINFO;
  T_USERINFO tUserInfo[10];
  </code></pre>
  
  <p>Now, i want that the my query result from sqlite3_step command or any, will be directly assigned to this struct tUserInfo[index]. 
  Is there a way to do on this way...? Thanks.</p>