Thread Dezimalzahl in Dualzahl umwandeln
(37 answers)
Opened by SirLant at 2003-09-08 18:55
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. |