Home > Software engineering >  A question about sqlite callback function.
A question about sqlite callback function.

Time:11-25

In the callback function of sqlite, callbackToGetAndroidFriendList (void * NotUsed, int arg c, char * * argv, char * * azColName), argv [] in the array returned to the query to the value of each column but now I want to get the width of the columns,
Because I returned data is encrypted, so use strlen (argv [0]), such methods are not enough, because the encrypted character inside there may be a character '\ 0', the strlen so the length is wrong, I saw on the Internet can use sqlite3_column_bytes width, but the above code and my code is completely different, the online code does not use a callback function, please use the callback function methods to query each column data, there are ways to get the width of the columns?

CodePudding user response:

Not again after decryption strlen

CodePudding user response:

Have a master can answer it for me?
  • Related