01.10.2015, 17:57
Personal Opinion: Handling hex values using strings is useless! There is absolutely no point in doing that. If you want to try and prove me wrong go ahead, I have plenty of reasons against it.
You can manipulate hex values so much easier and cleaner with binary operations.
You can print them with as many leading zeros as you want like this (8 leading, even when the value is below 268435455, aka 0x0FFFFFFF, which would normally print like this: FFFFFFF): "printf("%8x", color);".
I just reported you. That is literally the most useless comment I've seen in like a week. No shit he is going to find someone, that's why he's in the fucking HELP SECTION.
You can manipulate hex values so much easier and cleaner with binary operations.
You can print them with as many leading zeros as you want like this (8 leading, even when the value is below 268435455, aka 0x0FFFFFFF, which would normally print like this: FFFFFFF): "printf("%8x", color);".
I just reported you. That is literally the most useless comment I've seen in like a week. No shit he is going to find someone, that's why he's in the fucking HELP SECTION.