/contrib/ntp/libntp/lib_strbuf.c

https://bitbucket.org/freebsd/freebsd-head/ · C · 23 lines · 11 code · 3 blank · 9 comment · 0 complexity · a1d7374825db9d7693af28e0552ec7a9 MD5 · raw file

  1. /*
  2. * lib_strbuf - library string storage
  3. */
  4. #include "ntp_stdlib.h"
  5. #include "lib_strbuf.h"
  6. /*
  7. * Storage declarations
  8. */
  9. char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
  10. int lib_nextbuf;
  11. int lib_inited = 0;
  12. /*
  13. * initialization routine. Might be needed if the code is ROMized.
  14. */
  15. void
  16. init_lib(void)
  17. {
  18. lib_nextbuf = 0;
  19. lib_inited = 1;
  20. }