I need a function written in ANSI C that will rotate a specified number of bits from the right side of a binary number to the left side. ie: for the binary number 0110010100111, with a specified n, as lets say 4, will return 011101101010. The four right hand side bits have been rotated to the left side resulting in a differnt number. The function needs to have an ASCII number input (equivalent to the first binary number), and needs to return the ASCII equivalent of the rotated binary form. Hope all this makes sense. I only need the function code, so that I could put it in a larger project.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.
## Platform
Normal ASNI C.