/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
- * FILE: lib/crtdll/conio/kbhit.c
+ * FILE: lib/msvcrt/stdio/fsopen.c
* PURPOSE: Checks for keyboard hits
* PROGRAMER: Boudewijn Dekker
* UPDATE HISTORY:
FILE * __alloc_file(void);
+/*
+ * @implemented
+ */
FILE* _fsopen(const char *file, const char *mode, int shflag)
{
FILE *f;
if (fd < 0)
return NULL;
-// ms crtdll ensures that writes will end up at the end of file in append mode
+// msvcrt ensures that writes will end up at the end of file in append mode
// we just move the file pointer to the end of file initially
if (*mode == 'a')
lseek(fd, 0, SEEK_END);
return f;
}
+/*
+ * @implemented
+ */
FILE* _wfsopen(const wchar_t *file, const wchar_t *mode, int shflag)
{
FILE *f;
if (fd < 0)
return NULL;
-// ms crtdll ensures that writes will end up at the end of file in append mode
+// msvcrt ensures that writes will end up at the end of file in append mode
// we just move the file pointer to the end of file initially
if (*mode == L'a')
lseek(fd, 0, SEEK_END);