* @brief Initializes a string vector structure with default buffer size * * @param[out] sv Pointer to the string vector structure to initialize */
| 19 | * @param[out] sv Pointer to the string vector structure to initialize |
| 20 | */ |
| 21 | static void _strvec_init(struct lwp_string_vector *sv) |
| 22 | { |
| 23 | #define DEFAUTL_ARGV_BUFLEN 4 |
| 24 | sv->strvec = rt_malloc(DEFAUTL_ARGV_BUFLEN * sizeof(char *)); |
| 25 | sv->strvec_buflen = DEFAUTL_ARGV_BUFLEN; |
| 26 | sv->string_count = 0; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * @brief Detaches and frees memory from a string vector structure |