diff options
author | Elliott Hughes <enh@google.com> | 2017-11-10 16:20:43 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-11-10 16:20:43 -0800 |
commit | 345b727e9606e8e159dd6b56854436168e9e8666 (patch) | |
tree | 8fc2972c3852c102f028ecb34b8f61acfd027878 /libc/stdio/stdio.cpp | |
parent | 843e34087454268fdb77fd4f02178b779553842b (diff) |
Move public scanf functions away from implementation.
Bug: N/A
Test: ran tests
Change-Id: Ifb8bd91132865f8c6d0b95baf1021af3b3b3c353
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r-- | libc/stdio/stdio.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp index b4b2a3685..d6275569c 100644 --- a/libc/stdio/stdio.cpp +++ b/libc/stdio/stdio.cpp @@ -940,11 +940,21 @@ int vfprintf(FILE* fp, const char* fmt, va_list ap) { return __vfprintf(fp, fmt, ap); } +int vfscanf(FILE* fp, const char* fmt, va_list ap) { + ScopedFileLock sfl(fp); + return __svfscanf(fp, fmt, ap); +} + int vfwprintf(FILE* fp, const wchar_t* fmt, va_list ap) { ScopedFileLock sfl(fp); return __vfwprintf(fp, fmt, ap); } +int vfwscanf(FILE* fp, const wchar_t* fmt, va_list ap) { + ScopedFileLock sfl(fp); + return __vfwscanf(fp, fmt, ap); +} + int vprintf(const char* fmt, va_list ap) { return vfprintf(stdout, fmt, ap); } |