smartlist_split.h 572 B

1234567891011121314151617181920
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file smartlist_split.h
  7. * \brief Header for smartlist_split.c
  8. **/
  9. #ifndef TOR_SMARTLIST_SPLIT_H
  10. #define TOR_SMARTLIST_SPLIT_H
  11. #define SPLIT_SKIP_SPACE 0x01
  12. #define SPLIT_IGNORE_BLANK 0x02
  13. #define SPLIT_STRIP_SPACE 0x04
  14. int smartlist_split_string(smartlist_t *sl, const char *str, const char *sep,
  15. int flags, int max);
  16. #endif