Share this page

# lrc_int

Type Conversion From String

Converts a string into an integer.

    int lrc_int( const char* str );

    int* lrc_int_by_ref( const char* str );

str | A character string containing an integer.

The lrc_int function returns an integer when a character string representing an integer is input. The argument can be a literal string, a variable, or a parameter.

The lrc_int_by_ref function returns pointer to an integer when a character string representing an integer is input. The argument can be a literal string, a variable, or a parameter.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example converts the "100" string into the integer 100:

    int Var = lrc_int("100");

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: