Skip to content

void friend_message_cb issue with "friend_number" ?  #1636

Open
@Artysteel

Description

@Artysteel

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions