Tor  0.4.7.0-alpha-dev
scanf.h
Go to the documentation of this file.
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2021, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
6 /**
7  * \file scanf.h
8  * \brief Header for scanf.c
9  **/
10 
11 #ifndef TOR_UTIL_SCANF_H
12 #define TOR_UTIL_SCANF_H
13 
14 #include "orconfig.h"
15 #include "lib/cc/compat_compiler.h"
16 
17 #include <stdarg.h>
18 
19 int tor_vsscanf(const char *buf, const char *pattern, va_list ap) \
20  CHECK_SCANF(2, 0);
21 int tor_sscanf(const char *buf, const char *pattern, ...)
22  CHECK_SCANF(2, 3);
23 
24 #endif /* !defined(TOR_UTIL_SCANF_H) */
Utility macros to handle different features and behavior in different compilers.
int tor_sscanf(const char *buf, const char *pattern,...)
Definition: scanf.c:309
int tor_vsscanf(const char *buf, const char *pattern, va_list ap)
Definition: scanf.c:179