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

Function _strvec_detach

components/lwp/lwp_args.c:34–40  ·  view source on GitHub ↗

* @brief Detaches and frees memory from a string vector structure * * @param[in,out] sv Pointer to the string vector structure to detach */

Source from the content-addressed store, hash-verified

32 * @param[in,out] sv Pointer to the string vector structure to detach
33 */
34static void _strvec_detach(struct lwp_string_vector *sv)
35{
36 if (sv->strvec)
37 {
38 rt_free(sv->strvec);
39 }
40}
41
42/**
43 * @brief Appends a string to a string vector structure

Callers 2

args_initFunction · 0.85
lwp_args_detachFunction · 0.85

Calls 1

rt_freeFunction · 0.85

Tested by

no test coverage detected