-static char numbuff[512];
-
-/* "inline" */
-#define prepbuf(buffer, num, tail) \
-{ \
- char *s = buffer + 4; \
- const char *ap = atoi_tab + (num << 2); \
- \
- strcpy(buffer, ":%s 000 %s "); \
- *s++ = *ap++; \
- *s++ = *ap++; \
- *s = *ap; \
- strcpy(s + 5, tail); \
-}
-
-char* err_str(int n)
-{
- Numeric* p;
-
- assert(0 < n);
- assert(n < ERR_LASTERROR);
- assert(0 != replyTable[n].value);
-
- p = &replyTable[n];
- prepbuf(numbuff, p->value, p->format);
-
- return numbuff;
-}
-
+/** Return a format string for a numeric response.
+ * @param n %Numeric to look up.
+ * @return Pointer to a static buffer containing the format string.
+ */