@ -38,3 +38,15 @@ char* convertIntToBinaryStr(int input){
}while(input != 0);
return result;
}
unsigned int convertBinaryStrToInt(char* input){
unsigned int result = 0;
int x = 0;
while(input[x] != '\0'){
if(input[x] == '1'){
result += 1 * pow(2, x);
x++;