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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -