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

Function read_versionfile

tools/configure.c:934–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934static void read_versionfile(void)
935{
936 FILE *stream;
937
938 snprintf(g_buffer, BUFFER_SIZE, "%s%c.version", g_topdir, g_delim);
939 stream = fopen(g_buffer, "r");
940 if (!stream)
941 {
942 /* It may not be an error if there is no .version file */
943
944 debug("Failed to open %s for reading: %s\n",
945 g_buffer, strerror(errno));
946 }
947 else
948 {
949 parse_file(stream, &g_versionvars);
950 fclose(stream);
951 }
952}
953
954static void get_verstring(void)
955{

Callers 1

mainFunction · 0.85

Calls 6

fopenFunction · 0.85
strerrorFunction · 0.85
parse_fileFunction · 0.85
fcloseFunction · 0.85
debugFunction · 0.70
snprintfFunction · 0.50

Tested by

no test coverage detected