zc_util.h 428 B

123456789101112131415161718
  1. /*
  2. * This file is part of the zlog Library.
  3. *
  4. * Copyright (C) 2011 by Hardy Simpson <HardySimpson1984@gmail.com>
  5. *
  6. * Licensed under the LGPL v2.1, see the file COPYING in base directory.
  7. */
  8. #ifndef __zc_util_h
  9. #define __zc_util_h
  10. size_t zc_parse_byte_size(char *astring);
  11. int zc_str_replace_env(char *str, size_t str_size);
  12. #define zc_max(a,b) ((a) > (b) ? (a) : (b))
  13. #define zc_min(a,b) ((a) < (b) ? (a) : (b))
  14. #endif