Define RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING

Define Documentation

RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, ...)

Set the error message using a format string and format arguments.

This function sets the error message using the given format string. The resulting formatted string is silently truncated at RCUTILS_ERROR_MESSAGE_MAX_LENGTH.

Parameters:
  • format_string[in] The string to be used as the format of the error message.

  • ...[in] Arguments for the format string.