I was getting confused over the use of precision format specifiers for strings.
Like we use
printf("%4.2d",somevar);
to talk about decimal places,
what does it mean in case of a string as in
what does
printf("%4.2s",somestringvar);
mean?
I was getting confused over the use of precision format specifiers for strings.
Like we use
printf("%4.2d",somevar);
to talk about decimal places,
what does it mean in case of a string as in
what does
printf("%4.2s",somestringvar);
mean?
Last edited by brewbuck; 06-12-2007 at 10:57 AM.
http://msdn2.microsoft.com/en-us/lib...14(VS.80).aspx
You can use search as well...
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler