MCPcopy Create free account
hub / github.com/apache/nuttx / verify_appdir

Function verify_appdir

tools/configure.c:970–987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968}
969
970static bool verify_appdir(const char *appdir)
971{
972 /* Does this directory exist? */
973
974 snprintf(g_buffer, BUFFER_SIZE, "%s%c%s", g_topdir, g_delim, appdir);
975 debug("verify_appdir: Checking apppath=%s\n", g_buffer);
976 if (verify_optiondir(g_buffer))
977 {
978 /* Yes.. Use this application directory path */
979
980 g_appdir = strdup(appdir);
981 g_apppath = strdup(g_buffer);
982 return true;
983 }
984
985 debug("verify_appdir: apppath=%s does not exist\n", g_buffer);
986 return false;
987}
988
989static void check_appdir(void)
990{

Callers 1

check_appdirFunction · 0.85

Calls 4

verify_optiondirFunction · 0.85
strdupFunction · 0.85
debugFunction · 0.70
snprintfFunction · 0.50

Tested by

no test coverage detected