_static uint8_t readtrans(const char *); _static void writetrans(uint8_t, char *); _static uint8_t readtrans(const char *buf) { uint8_t t; for (t = 0; t < 48; t++) if (!strncmp(buf, transstr[t], 11)) return t; LOG("readtrans error\n"); return _error; } _static void writetrans(uint8_t t, char *buf) { if (t >= 48) memcpy(buf, "error trans", 11); else memcpy(buf, transstr[t], 11); buf[11] = '\0'; }