* @brief This function parses a formatted string from the input string. * * @param str the input string to be parsed. * * @param format the format string that specifies how to interpret the input. * * @return The number of input items successfully matched and assigned. */
| 103 | * @return The number of input items successfully matched and assigned. |
| 104 | */ |
| 105 | int rt_sscanf(const char *str, const char *format, ...) |
| 106 | { |
| 107 | va_list ap; |
| 108 | int rv; |
| 109 | |
| 110 | va_start(ap, format); |
| 111 | rv = rt_vsscanf(str, format, ap); |
| 112 | va_end(ap); |
| 113 | |
| 114 | return rv; |
| 115 | } |
| 116 | RTM_EXPORT(rt_sscanf); |