lrc_<type>_by_ref
| Type Conversion From String |
Allocates memory of the specified type, and initializes it with a value.
int * lrc_<type>_by_ref( const char* str );| str | A character string containing an integer. |
The lrc_<type>_by_ref function allocates memory for a pointer to a variable of type <type>, and initializes it with the value contained in str.
Return Values
This function returns a pointer of type <type>.
Parameterization
The following argument can be parameterized using standard parameterization: str
Example
This example allocates memory to a pointer to a variable of type int, and initializes it with the value 7.
int * num = lrc_int_by_ref ("7");

