EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

StdLib/LibC/Stdio/feof.c

Go to the documentation of this file.
00001 
00047 #include  <LibConfig.h>
00048 
00049 #include <assert.h>
00050 #include <stdio.h>
00051 #include  <errno.h>
00052 #include "reentrant.h"
00053 #include "local.h"
00054 
00055 #undef feof
00056 
00057 int
00058 feof(FILE *fp)
00059 {
00060   int r;
00061 
00062   _DIAGASSERT(fp != NULL);
00063   if(fp == NULL) {
00064     errno = EINVAL;
00065     return (EOF);
00066   }
00067 
00068   FLOCKFILE(fp);
00069   r = __sfeof(fp);
00070   FUNLOCKFILE(fp);
00071   return r;
00072 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines