demo:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "evsql/sqlite3.h"
struct test_t{
char * username;
int password;
};
int print_record(void *params,int n_column,char **column_value,char **column_name)
{
int i;
/*传入的参数即为回调函数第一个参数params*/
struct test_t *test = params;
/*打印出搜索到的数据,数据均以字符串形式存入column_value中*/
for(i=0;i<n_column;i++){
printf("\t%s",column_value[i]);
}
printf("\n");