Hi
As there several ways to exchange data in the form of strings over sockets, such as e.g:
using functions like:
1) sprintf() and sscanf()
2) snprintf() and sscanf()
3) printf() and strtof()or converting to char and then pass it as an array
I would appreciate if you could suggest which way and why is efficient and better than others, or if there is another way not mentioned above. At the moment I am using the simplest way , I mean sprintf() and sscanf() functions. But I read on the web that e.g. using snprintf() function is more safe.
Thanks for your time and replies-