utils.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ident "ldclt @(#)utils.h 1.3 01/01/11"
  2. /** BEGIN COPYRIGHT BLOCK
  3. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  4. * Copyright (C) 2006 Red Hat, Inc.
  5. * All rights reserved.
  6. *
  7. * License: GPL (version 3 or any later version).
  8. * See LICENSE for details.
  9. * END COPYRIGHT BLOCK **/
  10. #ifdef HAVE_CONFIG_H
  11. # include <config.h>
  12. #endif
  13. /*
  14. FILE : utils.h
  15. AUTHOR : Jean-Luc SCHWING
  16. VERSION : 1.0
  17. DATE : 14 November 2000
  18. DESCRIPTION :
  19. This files contians the prototypes and other
  20. definitions related to utils.c, utilities functions
  21. that will be used as well by ldclt and by the genldif
  22. command.
  23. LOCAL : None.
  24. HISTORY :
  25. ---------+--------------+------------------------------------------------------
  26. dd/mm/yy | Author | Comments
  27. ---------+--------------+------------------------------------------------------
  28. 14/11/00 | JL Schwing | Creation
  29. ---------+--------------+------------------------------------------------------
  30. 16/11/00 | JL Schwing | 1.2 : Fix typo.
  31. ---------+--------------+------------------------------------------------------
  32. 11/01/01 | JL Schwing | 1.3 : Add new function rndlim().
  33. ---------+--------------+------------------------------------------------------
  34. */
  35. /*
  36. * Functions exported by utils.c
  37. */
  38. extern void rnd (char *buf, int low, int high, int ndigits);
  39. extern int rndlim (int low, int high);
  40. extern void rndstr (char *buf, int ndigits);
  41. extern int utilsInit (void);
  42. extern int incr_and_wrap(int val, int min, int max, int incr);
  43. /* End of file */