off topic, but since it seems that so many of you guys know programming, maybe you can help me!
(On topic in the way that one day when I am proficient in c, I may become a kernel hacker....)
 
Real simple question but I am pretty much a beginner here:
How would I write a function in c be to convert from st input a binary number to output  a base ten number?
10101111 entered would be output 175 or 1.75 x 10^2. (Or does this function exist, but I don't know it?)
 
 
I know it has to be easy but still been spending about an hour now with incorrect results.
 
Thanks