Sep 3, 2013 #1 brian25 Member level 2 Joined Feb 18, 2013 Messages 52 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,288 Activity points 1,601 how to put a value of int or byte in a string SendSMS(byte sim_phonebook_position, char *message_str) i want to read the pins and ouput like this 10111(1 if high and 0 if low) but this part (char *message_str) only accept string.
how to put a value of int or byte in a string SendSMS(byte sim_phonebook_position, char *message_str) i want to read the pins and ouput like this 10111(1 if high and 0 if low) but this part (char *message_str) only accept string.
Sep 3, 2013 #2 S salmanliaquat Full Member level 2 Joined Feb 21, 2011 Messages 128 Helped 38 Reputation 76 Reaction score 38 Trophy points 1,318 Location Pakistan Activity points 1,908 Code: sprintf(message_str, "%d", int_x); //for integer sprintf(message_str, "%d", (int)char_c); //for byte
Code: sprintf(message_str, "%d", int_x); //for integer sprintf(message_str, "%d", (int)char_c); //for byte