Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Type Checking (CRT)

The compiler performs limited type checking on functions that can take a variable number of arguments, as follows:

Function call

Type-checked arguments

_cprintf, _cscanf, printf, scanf

First argument (format string)

fprintf, fscanf, sprintf, sscanf

First two arguments (file or buffer and format string)

_snprintf

First three arguments (file or buffer, count, and format string)

_open

First two arguments (path and _open flag)

_sopen

First three arguments (path, _open flag, and sharing mode)

_execl, _execle, _execlp, _execlpe

First two arguments (path and first argument pointer)

_spawnl, _spawnle, _spawnlp, _spawnlpe

First three arguments (mode flag, path, and first argument pointer)

The compiler performs the same limited type checking on the wide-character counterparts of these functions.

Community Additions

ADD
Show:
© 2015 Microsoft