Skip to content
/ even.h Public

a very serious single header C library for checking if a number is even

License

Notifications You must be signed in to change notification settings

kittrz9/even.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

even.h

a single header C library to easily determine if a number is even

there is surely no other way of doing this :)


Why????????

for the funny

How????????

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;
}

Who????????

https://kittrz.gay/

Why does it only go up to 65535?

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).

Has this been done before?

probably!

About

a very serious single header C library for checking if a number is even

Topics

Resources

License

Stars

Watchers

Forks

Languages