---
title: "C6510 | Microsoft Docs"
ms.date: 11/15/2016
ms.prod: "visual-studio-dev14"
ms.technology: vs-ide-code-analysis
ms.topic: reference
f1_keywords: 
  - "C6510"
helpviewer_keywords: 
  - "C6510"
ms.assetid: b7fc5eb4-3311-442c-ac79-401e88ef2129
caps.latest.revision: 17
author: corob-msft
ms.author: corob
manager: jillfra
---
# C6510
[! INCLUDE[vs2017banner](../includes/vs2017banner.md)]

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.   
  
## Example  
 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 ...  
}  
```  
  
## See Also  
 [C6516](../code-quality/c6516.md)
