Das geht sogar noch schöner:Zitat von Felix G
Ich sehe da jetzt auch eigentlich kein Problem ...// Bit gesetzt?
if( bit_is_set(Variable, BitNr) )
// Bit nicht gesetzt?
if( bit_is_clear(Variable, BitNr) )
MfG Kjion
Das geht sogar noch schöner:Zitat von Felix G
Ich sehe da jetzt auch eigentlich kein Problem ...// Bit gesetzt?
if( bit_is_set(Variable, BitNr) )
// Bit nicht gesetzt?
if( bit_is_clear(Variable, BitNr) )
MfG Kjion
Lesezeichen