Browse Source

refactoring: change buffer name

remotes/origin/Input_Handling
Sophia Weber 1 year ago
parent
commit
49c95dee19
  1. 10
      src/outputHandling.c

10
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); ;
}
Loading…
Cancel
Save