MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / at_req_parse_args

Function at_req_parse_args

components/net/at/src/at_server.c:94–109  ·  view source on GitHub ↗

* AT server request arguments parse arguments * * @param req_args request arguments * @param req_expr request expression * * @return -1 : parse arguments failed * 0 : parse without match * >0 : The number of arguments successfully parsed */

Source from the content-addressed store, hash-verified

92 * >0 : The number of arguments successfully parsed
93 */
94int at_req_parse_args(const char *req_args, const char *req_expr, ...)
95{
96 va_list args;
97 int req_args_num = 0;
98
99 RT_ASSERT(req_args);
100 RT_ASSERT(req_expr);
101
102 va_start(args, req_expr);
103
104 req_args_num = vsscanf(req_args, req_expr, args);
105
106 va_end(args);
107
108 return req_args_num;
109}
110
111/**
112 * AT server send command execute result to AT device

Callers 1

at_uart_setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected