Added #define for buffer size needed for flt_flt2str()
authorceriel <none@none>
Mon, 31 Jul 1989 13:05:51 +0000 (13:05 +0000)
committerceriel <none@none>
Mon, 31 Jul 1989 13:05:51 +0000 (13:05 +0000)
modules/src/flt_arith/flt_arith.3
modules/src/flt_arith/flt_arith.h

index dfe27db..5dfec21 100644 (file)
@@ -25,6 +25,8 @@ extern int    flt_status;
 #define FLT_DIV0       004
 #define FLT_NOFLT      010
 #define FLT_BTSM       020
+
+#define FLT_STRLEN     32
 .PP
 .B flt_add(e1, e2, e3)
 .B flt_arith *e1, *e2, *e3;
@@ -181,6 +183,7 @@ stored in
 At most
 .I bufsize
 characters are stored.
+The maximum length needed is available in the constant FLT_STRLEN.
 .PP
 .B flt_arith2flt
 converts the number
index e92a389..ddbb703 100644 (file)
@@ -25,4 +25,5 @@ extern int    flt_status;
 #define        FLT_NOFLT       010
 #define FLT_BTSM       020
 
+#define FLT_STRLEN     32      /* max length of result of flt_flt2str() */
 #endif __FLT_INCLUDED__