Thread Dezimalzahl in Dualzahl umwandeln (37 answers)
Opened by SirLant at 2003-09-08 18:55

esskar
 2003-09-12 00:32
#11046 #11046
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ok....
sizeof(char) == 1 geht an dich!

jedoch mit dem cast liegst du falsch...
calloc und malloc gibt einen void* zurück...
in der doku steht:

calloc returns a pointer to the allocated space. The storage space pointed to by the return value is guaranteed to be suitably aligned for storage of any type of object. To get a pointer to a type other than void, use a type cast on the return value.

View full thread Dezimalzahl in Dualzahl umwandeln