scanf.h 602 B

123456789101112131415161718192021222324
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /**
  6. * \file scanf.h
  7. * \brief Header for scanf.c
  8. **/
  9. #ifndef TOR_UTIL_SCANF_H
  10. #define TOR_UTIL_SCANF_H
  11. #include "orconfig.h"
  12. #include "lib/cc/compat_compiler.h"
  13. #include <stdarg.h>
  14. int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \
  15. CHECK_SCANF(2, 0);
  16. int tor_sscanf(const char *buf, const char *pattern, ...)
  17. CHECK_SCANF(2, 3);
  18. #endif /* !defined(TOR_UTIL_STRING_H) */