smartlist_split.h 496 B

123456789101112131415
  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. #ifndef TOR_SMARTLIST_SPLIT_H
  6. #define TOR_SMARTLIST_SPLIT_H
  7. #define SPLIT_SKIP_SPACE 0x01
  8. #define SPLIT_IGNORE_BLANK 0x02
  9. #define SPLIT_STRIP_SPACE 0x04
  10. int smartlist_split_string(smartlist_t *sl, const char *str, const char *sep,
  11. int flags, int max);
  12. #endif