vscphlp_readStringValue

long vscphlp_readStringValue( const char * pStrValue )

Parameters

pStrValue

Pointer to string representation of value.

Return Value

The converted number as a signed long..

Description

Convert a string to an integer value. The string can be expressed as a decimal (10, 00001 ) or a hexadecimal value(0xff).

Example

long readValue = vscphlp_readStringValue("0x22");

Very Simple Control Protocol
Wed Jul 04 2018 19:49:59 GMT+0000 (UTC)
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""