readcsi
while ((i = readcsi(0, &input[0], sizeof (input))) > 0) {
static int readcsi(int, char *, int);