Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Bool

Are you still using ugly methods to emulate bool in C?

if (0) {
    do_something();
}

Now you will have the TRUE bool!

if (false) {
    do_something();
}

HOWTO

Drag bool.h into your project and use it!


Why Not C99 _Bool

C99 defines _Bool as boolean in C, but it's opaque and hard to understand.


Compiler Compatiblity

LLVM Clang 7.0 seems to works as expect, other should also work.

About

Want boolean type in C? A simple header will help you!

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages