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

Function lwp_print_envp

components/lwp/lwp_args.c:873–887  ·  view source on GitHub ↗

* @brief Print environment variables of light-weight process * * @param[in] lwp Pointer to the light-weight process structure * * @return void */

Source from the content-addressed store, hash-verified

871 * @return void
872 */
873void lwp_print_envp(struct rt_lwp *lwp)
874{
875 rt_size_t envp_counts;
876 char **kenvp_array = lwp_get_envp(lwp, &envp_counts);
877 if (kenvp_array)
878 {
879 rt_kprintf("envp_counts: %d\n", envp_counts);
880 for (size_t i = 0; i < envp_counts; i++)
881 {
882 rt_kprintf("envp[%d]: %s\n", i, kenvp_array[i]);
883 }
884 }
885 lwp_free_command_line_args(kenvp_array);
886 return ;
887}
888
889/**
890 * @brief Get environment variables of light-weight process

Callers

nothing calls this directly

Calls 3

lwp_get_envpFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected