I was just writing code in C and it turns out it doesn\'t have a boolean/bool datatype. Is there any C library which I can include to give me the ability to return a boolean
C99 has a boolean datatype, actually, but if you must use older versions, just define a type:
typedef enum {false=0, true=1} bool;