ICU4C proposal: Add u_feof()
George Rhoten <[email protected]> Fri, 16 Apr 2004 13:35:05 -0700
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <OFEC60EC8C.692348AA-ON86256E78.0070B11A-88256E78.00711B9D@us.ibm.com> |
Summary I'd like to propose adding u_feof() to icuio. This mirrors the feof that comes with stdio. Background There isn't much to this proposal. I just want to be able to see if the end of the file has been reached without depending on the return values of some functions. I'm sure other people will want this too. /** * Tests if the UFILE is at the end of the file stream. * @param f The UFILE from which to read. * @return Returns TRUE after the first read operation that attempts to * read past the end of the file. It returns FALSE if the current position is * not end of file. * @draft */ U_CAPI UBool U_EXPORT2 u_feof(UFILE *f); Deadline for comments: April 23, 2004 George Rhoten IBM Globalization Center of Competency/ICU San José, CA, USA ICU main website: http://oss.software.ibm.com/icu/index.html