From dd821a86f46db2bfb2246037bbb56dd68971b05a Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Sun, 26 Oct 2008 20:22:21 +0000 Subject: Sun Oct 26 20:21:00 UTC 2008 Johnny Willemsen --- ACE/ace/OS_NS_stdio.cpp | 89 ------------------------------------------------- 1 file changed, 89 deletions(-) (limited to 'ACE/ace/OS_NS_stdio.cpp') diff --git a/ACE/ace/OS_NS_stdio.cpp b/ACE/ace/OS_NS_stdio.cpp index 8d1abc93aae..fdb3d69e373 100644 --- a/ACE/ace/OS_NS_stdio.cpp +++ b/ACE/ace/OS_NS_stdio.cpp @@ -459,93 +459,4 @@ ACE_OS::vaswprintf_emulation(wchar_t **bufp, const wchar_t *format, va_list argp #endif /* !ACE_HAS_VASWPRINTF */ #endif /* ACE_HAS_WCHAR */ -int -ACE_OS::scanf (const char *format, ...) -{ - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vscanf (format, ap), int, -1, result); - va_end (ap); - return result; -} - -#if defined (ACE_HAS_WCHAR) -int -ACE_OS::scanf (const wchar_t *format, ...) -{ -#if defined (ACE_LACKS_VWSCANF) - ACE_UNUSED_ARG (format); - ACE_NOTSUP_RETURN (-1); -#else - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vwscanf (format, ap), int, -1, result); - va_end (ap); - return result; -#endif -} -#endif /* ACE_HAS_WCHAR */ - -int -ACE_OS::sscanf (const char *buf, const char *format, ...) -{ - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vsscanf (buf, format, ap), int, -1, result); - va_end (ap); - return result; -} - -#if defined (ACE_HAS_WCHAR) -int -ACE_OS::sscanf (const wchar_t *buf, const wchar_t *format, ...) -{ -#if defined (ACE_LACKS_VSWSCANF) - ACE_UNUSED_ARG (buf); - ACE_UNUSED_ARG (format); - ACE_NOTSUP_RETURN (-1); -#else - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vswscanf (buf, format, ap), int, -1, result); - va_end (ap); - return result; -#endif -} -#endif /* ACE_HAS_WCHAR */ - -int -ACE_OS::fscanf (FILE* stream, const char *format, ...) -{ - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vfscanf (stream, format, ap), int, -1, result); - va_end (ap); - return result; -} - -#if defined (ACE_HAS_WCHAR) -int -ACE_OS::fscanf (FILE* stream, const wchar_t *format, ...) -{ -#if defined (ACE_LACKS_VFWSCANF) - ACE_UNUSED_ARG (format); - ACE_NOTSUP_RETURN (-1); -#else - int result; - va_list ap; - va_start (ap, format); - ACE_OSCALL (::vfwscanf (stream, format, ap), int, -1, result); - va_end (ap); - return result; -#endif -} -#endif /* ACE_HAS_WCHAR */ - - ACE_END_VERSIONED_NAMESPACE_DECL -- cgit v1.2.1