MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / BootloaderArgs_destroy

Function BootloaderArgs_destroy

Tools/ToolsBootstrap.c:731–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729 }
730
731 free(potentialCpp);
732 fprintf(stderr, "Error: Tool \"%s\" doesn't exist\n", args->toolName);
733 free(toolCpp);
734 exit(1);
735}
736
737char* buildBuiltInToolHeaderPath(const BootloaderArgs* args) {
738 char* toolH = Path_join(args->toolSourceDir, "SC-");
739 toolH = (char*)realloc(toolH, strlen(toolH) + strlen(args->toolName) + strlen(".h") + 1);
740 if (toolH) {
741 strcat(toolH, args->toolName);
742 strcat(toolH, ".h");
743 }
744 return toolH;
745}
746

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected