Open
Description
Good day,
I am trying to print out the value of a friend, who sent message. No matter what I am trying, can't get it to work. I've looked into your code in other *.c files, and you were printing "uint32_t friend_number" normaly with printf.
How I've tried so far:
#include <inttypes.h> //for PRI and etc
void friend_message_cb(Tox *tox, uint32_t friend_number, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *user_data){
printf("1: %lu \n", friend_number);
printf("2: %lu \n", (unsigned long)friend_number );
printf("3: %"PRIu32"\n" , (uint32_t) friend_number ) ;
}
Metadata
Metadata
Assignees
Labels
No labels