Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 595 Bytes

File metadata and controls

31 lines (25 loc) · 595 Bytes

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