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
Expand Minimize

C6510

warning C6510: Invalid annotation: 'NullTerminated' property may only be used on buffers whose elements are of integral or pointer type: Function '<function>' <parameter>.

This warning indicates an incorrect use of the NullTerminated property (those ending in '_z'). You can only use this type of property on pointer or array types.

The following code generates this warning:

#include <sal.h>

void f(_In_z_ char x)
{
    // code ...
}

To correct this warning, use the following code:

#include <sal.h>

void f(_In_z_ char * x)
{
    // code ...
}
Show:
© 2015 Microsoft