diff --git a/modules/src/flt_arith/flt_arith.3 b/modules/src/flt_arith/flt_arith.3 index dfe27db52..5dfec210d 100644 --- a/modules/src/flt_arith/flt_arith.3 +++ b/modules/src/flt_arith/flt_arith.3 @@ -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 diff --git a/modules/src/flt_arith/flt_arith.h b/modules/src/flt_arith/flt_arith.h index e92a38940..ddbb703af 100644 --- a/modules/src/flt_arith/flt_arith.h +++ b/modules/src/flt_arith/flt_arith.h @@ -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__