home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / strutils.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  1.2 KB  |  39 lines

  1. /**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c); 1995
  4. //     All rights reserved.
  5. //  FILE:   strUtils.hpp
  6. //
  7. //  DESCRIPTION  
  8. //  This file provides function prototypes for string utilities
  9. //
  10. //  Author: M. Doucet
  11. //
  12. //  Modification History:
  13. //  4/25/95     Created
  14. //  4/27/95    Change to be unified socket class
  15. //
  16. //**********************************************************************/
  17. #ifndef _STRUTILS_HPP
  18. #define _STRUTILS_HPP
  19.  
  20. #ifdef VXWORKS
  21. #include <vxWorks.h>
  22. #endif
  23.  
  24. extern float frnd(float fnum);
  25. extern void trimFrontSpace(char *buf);
  26. extern void localToURL(char *bufIn, char *bufOut);
  27. extern void URLtoLocal(char *bufIn, char *bufOut);
  28. extern int get_integer(int *number);
  29. extern int get_float(float *number);
  30. extern void formatFloat(char *buf, float value, int width,
  31.                                 int after, int showZero);
  32. extern int stringToDoubles(char *string, double *number, int count);
  33. extern int stringToFloats(char *string, float *number, int count);
  34. extern int stringToIntegers(char *string, int *number, int count);
  35. extern void reduce(int *frac, int *base);
  36.  
  37. #endif
  38.  
  39.