Quantcast
Channel: PIC24 Topics
Viewing all articles
Browse latest Browse all 3494

sprintf returning incorrect value (paulw7)

$
0
0
Using PIC24FJ128GC010, XC16 compiler.... With the following declared globally:char send_event;
const char STATUS_FULL[] = "<#A,{Status:\"%04X\"}>";
unsigned int general_status = 0; When I call:sprintf(&send_event, &STATUS_FULL, general_s..

Viewing all articles
Browse latest Browse all 3494

Trending Articles