fscanf.c (a82bbc730e20fe9dec4abeb1d949b2d02869032a) | fscanf.c (54e4e385de33a961e801ceeea8146437e25edd88) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 33 unchanged lines hidden (view full) --- 42 43#include "namespace.h" 44#include <stdio.h> 45#include <stdarg.h> 46#include "un-namespace.h" 47#include "libc_private.h" 48 49int | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Chris Torek. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 33 unchanged lines hidden (view full) --- 42 43#include "namespace.h" 44#include <stdio.h> 45#include <stdarg.h> 46#include "un-namespace.h" 47#include "libc_private.h" 48 49int |
50fscanf(FILE *fp, char const *fmt, ...) | 50fscanf(FILE * __restrict fp, char const * __restrict fmt, ...) |
51{ 52 int ret; 53 va_list ap; 54 55 va_start(ap, fmt); 56 FLOCKFILE(fp); 57 ret = __svfscanf(fp, fmt, ap); 58 va_end(ap); 59 FUNLOCKFILE(fp); 60 return (ret); 61} | 51{ 52 int ret; 53 va_list ap; 54 55 va_start(ap, fmt); 56 FLOCKFILE(fp); 57 ret = __svfscanf(fp, fmt, ap); 58 va_end(ap); 59 FUNLOCKFILE(fp); 60 return (ret); 61} |