Reply to Re: Before...
If you don't have an account, just leave the password field blank.
@Toof:
You can easly google the algorithm for turning ints to bits. Its a simple do-while loop, and if DinkC supports checking whether the remainder is 0 or above, than it should be possible. I never tried to make and pass an argument to some dinkc function. But that should do it. Declare an integer of 4 billion something (max value of int), and pass how many times you're gonna divide it by two. Every step gives you a bit. Id have to sit down, and check that though. I forgot the algorithm myself.
Please feel free to upload some DinkC file that demonstrates how this would work within the limits of DinkC! I had trouble using division successfully and so switched to another technique. But, I'm not proud! If your technique works better I'll use it.
You can easly google the algorithm for turning ints to bits. Its a simple do-while loop, and if DinkC supports checking whether the remainder is 0 or above, than it should be possible. I never tried to make and pass an argument to some dinkc function. But that should do it. Declare an integer of 4 billion something (max value of int), and pass how many times you're gonna divide it by two. Every step gives you a bit. Id have to sit down, and check that though. I forgot the algorithm myself.
Please feel free to upload some DinkC file that demonstrates how this would work within the limits of DinkC! I had trouble using division successfully and so switched to another technique. But, I'm not proud! If your technique works better I'll use it.