Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1. static jstring c_baf2sql_get_sqlite_cache_filename(JNIEnv *env, jobject obj, jstring bafFile) {
  2.     char *bafFileString;
  3.     char sqliteFileString[256];
  4.     int bafStringLength;
  5.     int result;
  6.     bafFileString = (*env)->GetStringUTFChars(env, bafFile, 0);
  7.     // Signature is  c_char_p, c_uint32, c_char_p, c_int  -> c_uint32
  8.     printf("Opening %s (currently the filestring sqlite is %s)\n", bafFileString, &sqliteFileString);
  9.     result = baf2sql_get_sqlite_cache_filename_v2(bafFileString, strlen(bafFileString), sqliteFileString, 0);
  10.     printf("The sqlite file is %s result is %i\n", sqliteFileString, result);
  11.     return (*env)->NewStringUTF(env, sqliteFileString);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement