mcorest_api_json_write_i64

Write a 64 bit integer value.

For an overview see page mcorest_api_json_write_*

Prototype

    MCO_RET mcorest_api_json_write_i64( mcorest_api_json_write_ctx_t *ctx, mco_int8 i8 );

Arguments

ctx
Pointer to the JSON write context structure.
i8
A 64 bit integer value to write.

Description

This function writes a 64 bit integer value.

Return Codes

MCO_S_OK = 0
Success.
MCO_E_REST_*
Any of the Web Services Error Codes.

Example

    static void print_i64(mcorest_api_json_write_ctx_t *jctx,
                            mco_int8 i8)
    {
        mcorest_api_json_write_object_begin(jctx);
        mcorest_api_json_write_key(jctx, "i64_value");
        mcorest_api_json_write_i64(jctx, i8);
        ..
        mcorest_api_json_write_object_end(jctx);
        ..
    }

Files

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