home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / add-on / include / print.h < prev    next >
Encoding:
Text File  |  1998-08-19  |  1.4 KB  |  44 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. #ident    "@(#)libetitam:print.h    1.2"
  12. /* Maximum number of digits in any integer representation */
  13. #define MAXDIGS 11
  14.  
  15. /* Picking most of the values for the variables from libc-port:print/print.h */
  16.  
  17. /* Maximum total number of digits in E format */
  18. #define MAXECVT 23
  19.  
  20. /* Maximum number of digits after decimal point in F format */
  21. #define MAXFCVT 60
  22.  
  23. /* Maximum significant figures in a floating-point number */
  24. #define MAXFSIG MAXECVT
  25.  
  26. /* Maximum number of characters in an exponent */
  27. #define MAXESIZ 7
  28.  
  29. /* Maximum (positive) exponent */
  30. #define MAXEXP 4934
  31.  
  32. /* Data type for flags */
  33. typedef char bool;
  34.  
  35. /* Convert a digit character to the corresponding number */
  36. #define tonumber(x) ((x)-'0')
  37.  
  38. /* Convert a number between 0 and 9 to the corresponding digit */
  39. #define todigit(x) ((x)+'0')
  40.  
  41. /* Max and Min macros */
  42. #define max(a,b) ((a) > (b)? (a): (b))
  43. #define min(a,b) ((a) < (b)? (a): (b))
  44.