Skip to content

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

License

Notifications You must be signed in to change notification settings

QianNangong/bool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages