sl@0: /* CLEARERR.C sl@0: * sl@0: * Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: */ sl@0: sl@0: /* sl@0: * Copyright (c) 1990 The Regents of the University of California. sl@0: * All rights reserved. sl@0: * sl@0: * Redistribution and use in source and binary forms are permitted sl@0: * provided that the above copyright notice and this paragraph are sl@0: * duplicated in all such forms and that any documentation, sl@0: * advertising materials, and other materials related to such sl@0: * distribution and use acknowledge that the software was developed sl@0: * by the University of California, Berkeley. The name of the sl@0: * University may not be used to endorse or promote products derived sl@0: * from this software without specific prior written permission. sl@0: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR sl@0: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED sl@0: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. sl@0: */ sl@0: sl@0: /* sl@0: FUNCTION sl@0: <>---clear file or stream error indicator sl@0: sl@0: INDEX sl@0: clearerr sl@0: sl@0: ANSI_SYNOPSIS sl@0: #include sl@0: void clearerr(FILE *<[fp]>); sl@0: sl@0: TRAD_SYNOPSIS sl@0: #include sl@0: void clearerr(<[fp]>) sl@0: FILE *<[fp]>; sl@0: sl@0: DESCRIPTION sl@0: The <> functions maintain an error indicator with each file sl@0: pointer <[fp]>, to record whether any read or write errors have sl@0: occurred on the associated file or stream. Similarly, it maintains an sl@0: end-of-file indicator to record whether there is no more data in the sl@0: file. sl@0: sl@0: Use <> to reset both of these indicators. sl@0: sl@0: See <> and <> to query the two indicators. sl@0: sl@0: sl@0: RETURNS sl@0: <> does not return a result. sl@0: sl@0: PORTABILITY sl@0: ANSI C requires <>. sl@0: sl@0: No supporting OS subroutines are required. sl@0: */ sl@0: sl@0: #include sl@0: #include "LOCAL.H" sl@0: #undef clearerr sl@0: sl@0: /** sl@0: Reset error indicators. sl@0: Reset error and EOF indicators of the given stream. sl@0: @param fp pointer to an open file. sl@0: */ sl@0: EXPORT_C void sl@0: clearerr (FILE * fp) sl@0: { sl@0: __sclearerr (fp); sl@0: }