aboutsummaryrefslogtreecommitdiffstats
path: root/c/pid.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/pid.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/c/pid.c b/c/pid.c
index a282a89..9e4e792 100644
--- a/c/pid.c
+++ b/c/pid.c
@@ -1,9 +1,2 @@
#include "gbos.h"
-/* print an unsigned byte as decimal (no runtime division: subtract-based) */
-static void putu(unsigned char n) {
- char buf[3]; unsigned char i = 0;
- if (n == 0) { putc('0'); return; }
- while (n) { buf[i++] = '0' + (n % 10); n = n / 10; }
- while (i) putc(buf[--i]);
-}
void main(void) { putu(getpid()); nl(); }