Skip to content

mgriffin/five

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

five.c

Taking inspiration from https://github.com/jackdcrawford/five, this is a C port to overcomplicate 5. It's a complete rip off of the functions and ideas behind the javascript version, I just rewrote it (badly) in C.

Usage

#include "five.h"

Implemented functions

Basic 5
five(); // 5
Addition
five() + five(); // 10
Multiplication
five() * five(); // 25
Division
five() / five(); // 1
Different sorts of 5
five_roman(); // V
five_morseCode(); // di-di-di-di-dit
five_negative(); // -5
five_loud(); // FIVE
5 goes multilingual
five_dutch(); // vijf
five_english(); // five
five_french(); // cinq
five_german(); // fünf
five_irish(); // cúig
five_italian(); // cinque
five_spanish(); // cinco
five_swedish(); // fem
Different radices
five_binary(); // 101
five_octal(); // 5
five_hex(); // 5

Tests

make tests

About

An overcomplicated way to get the number 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages