Re: [msvcrt] Implement %I types for printf
June 6, 2005
3:32 a.m.
"Jesse Allen" <the3dfxdude(a)gmail.com> wrote:
+ if( flags->IntegerLength == 'I' ) + { + sprintf(p, "l"); + p++; + } + if( flags->IntegerSize == INTEGERSIZE_LONGLONG ) + { + sprintf(p, "l"); + p++; + }
sprintf is very inefficient here, why not use simple strcpy instead? -- Dmitry.
June 2005
8:04 a.m.
New subject: [msvcrt] Implement %I types for printf
On 6/6/05, Dmitry Timoshkov <dmitry(a)baikal.ru> wrote:
"Jesse Allen" <the3dfxdude(a)gmail.com> wrote:
+ if( flags->IntegerLength == 'I' ) + { + sprintf(p, "l"); + p++; + } + if( flags->IntegerSize == INTEGERSIZE_LONGLONG ) + { + sprintf(p, "l"); + p++; + }
sprintf is very inefficient here, why not use simple strcpy instead?
Oops... I changed it to "*p = 'l';"
7599
Age (days ago)
7599
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dmitry Timoshkov -
Jesse Allen