a single header C library to easily determine if a number is even
there is surely no other way of doing this :)
for the funny
like this!
// define this in only one file
#define EVEN_IMPLEMENTATION
#include "even.h"
int main(int argc, char** argv) {
if(isEven(2)) {
printf("2 is even :)\n");
} else {
printf("HOW\n");
return 1;
}
return 0;
}
I would've gone up to UINT32_MAX but the file would've taken up ~162 GB, and UINT64_MAX would probably take up about 600 exabytes.
really the only thing stopping me from using the UINT32_MAX one is github's file size limit (which is I think 2 GB for a free account).
probably!