_ _ _
| (_) |__ _ __ ___ _ _ ___ ___
| | | '_ \ ' \/ _ \ '_(_-</ -_)
|_|_|_.__/_|_|_\___/_| /__/\___|
libmorse is a small c library for working with morse code.
- no dynamic memory allocations
- ascii to morse code
- morse code to ascii
- streaming morse code to ascii
The easiest way to use libmorse is to download the single-file header from the latest release and include it in your application.
To build and install libmorse as a shared library you can download the latest release tarball and follow the usual autotools dance:
./configure
make
make install
If you clone the GIT repository then you will need to run bootstrap first:
./bootstrap
./configure
make
make install
libmorse includes a sample program which excercises all library functions
$ morse -h
Usage: morse [OPTION] [STRING]
Converts standard input or argument to morse or text
-t morse to text
-m text to morse
$ echo libmorse | morse -m
.-.. .. -... -- --- .-. ... .
$ echo ".-.. .. -... -- --- .-. ... ." | morse -t
LIBMORSE
See see the morse.h header for API documentation.