Search Results

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: declum ; Forum: C and child forums
Forum: C Sep 10th, 2006
Replies: 14
Views: 62,547
Posted By declum
your code is much long.. i found one in net
try it

long bin2dec(char *s)
{
long r=0;
for (; *s; r = (r<<1) | (*s++ - '0'));
return r;
}
Showing results 1 to 1 of 1

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC