Alien-TinyCC

 view release on metacpan or  search on metacpan

src/tests/tests2/32_led.c  view on Meta::CPAN

compile: cc -o led led.c

If you just want to link in the subroutine print_led that does all the
work, compile with -DNO_MAIN, and declare the following in any source file
that uses the call:

extern void print_led(unsigned long x, char *buf);

Bug: you cannot call repeatedly to print more than one number to a line.
That would require curses or some other terminal API that allows moving the
cursor to a previous line.

*/



#include <stdlib.h>
#include <stdio.h>

#define MAX_DIGITS 32
#define NO_MAIN



( run in 0.242 second using v1.01-cache-2.11-cpan-4d50c553e7e )