printf - C sprintf - could you please explain the following? -


what meaning of following line:

sprintf(version, "%ld%c", tpdu->version, sep); 

i getting confused in "%ld%c". how used here?

%ld%c 2 format specifiers %ld , %c. former used long int while latter used char.

the sprintf have writes value of tpdu->version, long int , value of sep, char buffer version.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -