| 461 | } |
| 462 | |
| 463 | static void systemCommand(char* command, char **buffer){ |
| 464 | char line[1024]; |
| 465 | FILE *fp = NULL; |
| 466 | char *out = calloc(1, 1); |
| 467 | |
| 468 | fp = popen(command, "r"); |
| 469 | if (fp){ |
| 470 | while (fgets(line, sizeof(line)-1, fp) != NULL) { |
| 471 | out = realloc(out, strlen(out) + strlen(line)); |
| 472 | strcat(out, line); |
| 473 | } |
| 474 | pclose(fp); |
| 475 | } |
| 476 | |
| 477 | *buffer = out; |
| 478 | } |
| 479 | |
| 480 | static char* printAddress(char* address){ |
| 481 | char* commandPart = "/xtensa-lx106-elf-addr2line -aipfC -e "; |
no outgoing calls
no test coverage detected