How do I convert a binary string like \"010011101\" to an int, and how do I convert an int, like 5, to a string \"101\" in C?
Use like this:
char c[20]; int s=23; itoa(s,c,2); puts(c);
Output:
10111