dattlara76
Junior Member level 2
Hi,
Below part code for 16x2 LCD,
I trying to understand how the code //while (s && *s)send_char (*s++); is executed ?? if the argument is passed like "ABCD" ????
I only known the statement in c that //while(), but what is the meaning of that while()with the passing argument by calling function ..ie, //while (s && *s)send_char (*s++);
could you please clear anybody. and can you share a link whare such statement is exist please.
tnx
Below part code for 16x2 LCD,
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ------------------ void send_string(const char *s) //send a string to display in the lcd { while (s && *s)send_char (*s++); } --------------------- void send_char(unsigned char data) //send lcd character { ..loop } ----------------------
I only known the statement in c that //while(), but what is the meaning of that while()with the passing argument by calling function ..ie, //while (s && *s)send_char (*s++);
could you please clear anybody. and can you share a link whare such statement is exist please.
tnx