# mcorest_api_json_numeric_is_integer

Return a non-zero value if the input string contains an integer number.

### For an overview see page mcorest_api_json_read_*

### Prototype

        int mcorest_api_json_numeric_is_integer( const char *str );

### Arguments

str | A numeric JSON value

### Description

> This function returns a non-zero value if `str` contains an integer number. The return value is undefined if `str` does not contain a valid JSON numeric value.

### Return Codes

int | A non-zero value if `str` contains an integer number; zero otherwise

### Example

        mcorest_api_json_numeric_is_integer("12345"); /* returns non-zero */

        mcorest_api_json_numeric_is_integer("3.14"); /* returns zero */

### Files

Header file:
mcorestapi.h
Source file:
jsonrd.c
Library:
libmcorest.a