...
Anchor | ||||
---|---|---|---|---|
|
Compliant Solution
...
(setlocale()
)
A compliant solution checks the value returned by setlocale()
and avoids calling mbstowcs()
if the function fails. The function also takes care to restore the locale to its initial setting before returning control to the caller.
...