MCPcopy Create free account
hub / github.com/OpenIPC/firmware / init_paths

Function init_paths

general/package/legacy/lshell/src/lshell.c:34–39  ·  view source on GitHub ↗

* @brief Initializes the list of paths and adds the DEFAULT_PATH * */

Source from the content-addressed store, hash-verified

32 *
33 */
34void init_paths()
35{
36 paths = (char **)malloc(sizeof(char *) * 2);
37 paths[paths_c] = (char *)malloc(sizeof(char) * strlen(DEFAULT_PATH) + 1);
38 strcpy(paths[paths_c++], DEFAULT_PATH);
39}
40
41/**
42 * @brief Empties the list of paths and frees memory

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected