Mathematics in beermeter
[mirrors/Programs.git] / c / mice.c
CommitLineData
21c4e167
H
1#include <stdio.h>
2
3int main() {
4 char inbuf[3];
5 FILE *mice = fopen("/dev/input/mice", "rb");
6 if(!mice) exit(1);
7
8 while(1) {
9 printf(" %b", getc(mice));
10 printf(" %d", getc(mice));
11 printf(" %d\n", getc(mice));
12 }
13
14}
This page took 0.135324 seconds and 4 git commands to generate.