Compartilhar via


PREfast Warning 69 (Windows CE 5.0)

Send Feedback

69 - Inefficient use of <function>.
Recommended Fix: Consider calling <function> instead.

This warning indicates that a call is being made to a format function in a situation where a call to some other, non-format function could have been made instead.

Calling the non-format function is likely to be faster and potentially safer.

When possible, PREfast recommends a specific preferable function to call. If PREfast cannot make a specific recommendation, it will recommend calling "a_safer_function."

Example

Defective Source

char buff[5];

sprintf(buff,
        ptr);

Corrected Source

char buff[5];

strncpy(buff,
        ptr,
        5);

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.