From 614fa462d86c097129902b882fe8c872f208c6c6 Mon Sep 17 00:00:00 2001 From: f0tt3r Date: Mon, 8 Jun 2026 21:09:41 +0200 Subject: [PATCH] =?UTF-8?q?gr=C3=B6=C3=9Ferer=20int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hallo-welt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hallo-welt.c b/hallo-welt.c index 30f2e0b..640887b 100644 --- a/hallo-welt.c +++ b/hallo-welt.c @@ -10,7 +10,7 @@ void hallo_welt(void) { printf(HALLO); } // use more then one int type -const char *binaerzahl(uint8_t bin) { +const char *binaerzahl(uint32_t bin) { char *str = malloc(sizeof(bin) * 8 + 1); // Allocate 8 bits for actual data and 1 Bit for the \0 // sign indicating the end of the string @@ -27,8 +27,8 @@ const char *binaerzahl(uint8_t bin) { } int getint(void) { - uint8_t i; - scanf("%hhu", &i); + uint32_t i; + scanf("%u", &i); return i; }