I
ig3v10
Hi ,
need advice on the folloing situation:
wchar_t* day = new wchar_t [11];
swprintf(day,L"%4d-%2d-%2d",yy,mm,dd);
how to make sure that my 'day' didn't get string bigger then 11 chars?
found:
swprintf_s(day,size,L"%4d-%2d-%2d",yy,mm,dd);
but it requires crt
any suggestions?
~igRek
need advice on the folloing situation:
wchar_t* day = new wchar_t [11];
swprintf(day,L"%4d-%2d-%2d",yy,mm,dd);
how to make sure that my 'day' didn't get string bigger then 11 chars?
found:
swprintf_s(day,size,L"%4d-%2d-%2d",yy,mm,dd);
but it requires crt
any suggestions?
~igRek