Search code examples
cbitset

Does C have a #include<bitset> similar to C++?


Does C have a #include<bitset> similar to C++ ? I have been looking for the past week. I can't find a equivalent directive preprocessor!


Solution

  • No, it does not. There are, however, ways to implement what you are looking for (or at least some sort of approximation). Take look at: http://c-faq.com/misc/bitsets.html - I think it is going to be useful.