I've got an Sqlite database and i'm reading values back out using this loop:
int i;
for(i=0; i<argc; i++) // [0] = IP, [1] = seq, [2] = count
{
printf("%s = %s\n", azColName[i], argv[i] ? argv[i] : "NULL");
}
if (atoi(argv[2]) > stealthBeta)
{
confirmSEQ((uint32_t)argv[1]);
}
The value in argv[1] is stored as an UNSIGNED INT in the database and is being written out to the console properly but when I call the function i'm getting the wrong number.
I've tried casting it but it's not exactly working, whats the proper way to get it from the char** to uint32_t?
Aucun commentaire:
Enregistrer un commentaire