Skip to content

x3hy/otherwise-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

441,090 Commits
 
 
 
 
 
 

Repository files navigation

otherwise-lib

if else, elif, otherwise programmer meme

A small library to help british people adjust to programming, This library introduces the otherwise keyword that acts as a else.

Usage:

Simply place the otherwise.h file in your projects folder and use as follows:

#include "otherwise.h"
#include <stdio.h>

#define MY_VALUE 1234

int
main (void)
{
    if (MY_VALUE > 10)
      {
        printf ("value larger then ten\n");
        return 0;
      }
    otherwise
      {
        printf ("value smaller then ten\n");
        return 1;
      }
}

About

An advanced but small library that introduces a new "otherwise" keyword to C and C++.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages