F.1.3. rascal_aton

bool rascal_aton(
	const char *symbolic,
	addr_t *addr,
	addr_t *mask OPTIONAL
);

Converts an address from its text representation to the numeric form. The string can be of one of the following forms:

The mask is ignored if the mask parameter is a null pointer or if the pattern does not contain a network mask.

Return value. 

If the address could be interpreted, the function returns REC_SUCCESS and addr and mask structures receive the corresponding data. If the mask parameter was not specified, the corresponding part of the source string is ignored.

When the function fails, the corresponding error message can be retreived by a call to rascal_get_errmsg. In that case, the content of addr and mask structures is undetermined.