diff --git a/src/outputHandling.c b/src/outputHandling.c index 10ce3f8..2f66f64 100644 --- a/src/outputHandling.c +++ b/src/outputHandling.c @@ -12,11 +12,11 @@ void buildOctString(char* string, int number) { void showResult(calc_op* result) { - char buf[60] = {0}; + char string[60] = {0}; printf("Das Ergebnis ist: %f\n", result->result); printf("Das Ergebnis in dec: %i\n",(int)result->result); - buildHexString(buf, (int) result->result); - printf("Das Ergebnis in buildHexString: 0x%s\n", buf); ; - buildOctString(buf, (int) result->result); - printf("Das Ergebnis in buildOctString: %s\n", buf); ; + buildHexString(string, (int) result->result); + printf("Das Ergebnis in buildHexString: 0x%s\n", string); ; + buildOctString(string, (int) result->result); + printf("Das Ergebnis in buildOctString: %s\n", string); ; } \ No newline at end of file