sqliteデータベースを関数に渡してから、別の関数に渡そうとしています。これが私のコードです。
//database Name
// Create a handle for database connection, create a pointer to sqlite3
sqlite3 *dataDB;
//I send it through to the function here
// Execute the query for creating table
retval = sqlite3_exec(dataDB,create_students,0,0,0);
私のプロトタイプ:
int readInFiles(sqlite3 ** dataDB);
void addCourse(sqlite3 ** dataDB, struct course,int k);
readInFiles
関数内から呼び出します。
addCourse(&dataDB,deg,k);
これが私のエラーです:
"database.c", line 50: warning: argument #1 is incompatible with prototype:
prototype: pointer to pointer to struct sqlite3 {} : "database.h", line 51