Nov 30, 2012 #1 D Don_dody Full Member level 1 Joined Nov 4, 2012 Messages 96 Helped 1 Reputation 2 Reaction score 1 Trophy points 1,288 Location Indonesia Visit site Activity points 1,921 What is the function of char buf[33]; and sprintf(buf,"abc"); in codevisionAVR. I try to display "abc" in LCD. It works, but I just have no idea what are their function.
What is the function of char buf[33]; and sprintf(buf,"abc"); in codevisionAVR. I try to display "abc" in LCD. It works, but I just have no idea what are their function.
Nov 30, 2012 #2 alexan_e Administrator Joined Mar 16, 2008 Messages 11,888 Helped 2,021 Reputation 4,158 Reaction score 2,031 Trophy points 1,393 Location Greece alexan.edaboard.eu Activity points 64,371 You can check the codevision manual or any tutorial about sprintf http://www.cprogramminginfo.com/Functions/sprintf_Manual.php The code you have provided declares an array of 33 characters and uses sprintf to write adc in the array
You can check the codevision manual or any tutorial about sprintf http://www.cprogramminginfo.com/Functions/sprintf_Manual.php The code you have provided declares an array of 33 characters and uses sprintf to write adc in the array