scanf.h 546 B

12345678910111213141516171819
  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_UTIL_SCANF_H
  6. #define TOR_UTIL_SCANF_H
  7. #include "orconfig.h"
  8. #include "lib/cc/compat_compiler.h"
  9. #include <stdarg.h>
  10. int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \
  11. CHECK_SCANF(2, 0);
  12. int tor_sscanf(const char *buf, const char *pattern, ...)
  13. CHECK_SCANF(2, 3);
  14. #endif /* !defined(TOR_UTIL_STRING_H) */