help | logout
RSP_smallSizeConvert

RSP_smallSizeConvert

Name

RSP_smallSizeConvert -- Converts small size value to double.

Synopsis

double RSP_smallSizeConvert(char *data);

Description

This function converts the given string data to a long integer representation.

Available suffixes are:

  • megabytes

  • kilobytes

  • bytes

Returns

Returns a long integer representation of the given data (or -1 if an error occurred).

Error Conditions

If an error occurs, -1 will be returned and rsp_error will be set to the following error code:

  • RSP_INVALID_ARGS

  • RSP_BAD_CONVERT

  • RSP_LOW_MEM