Edit

Share via


_nolock functions

The _nolock functions are versions of I/O functions that don't perform any locking. They're provided for users requiring maximum performance. For more information, see Multithreaded libraries performance.

Use _nolock functions only if your program is truly single-threaded or if it does its own locking.

No lock routines

Routine Use
_fclose_nolock Closes a stream without locking
_fflush_nolock Flushes a stream without locking
_fgetc_nolock, _fgetwc_nolock Reads a character from a stream without locking
_fread_nolock Reads data from a stream without locking
_fseek_nolock, _fseeki64_nolock Moves the file pointer to a specified location without locking
_ftell_nolock, _ftelli64_nolock Gets the current position of a file pointer without locking
_fwrite_nolock Writes data to a stream without locking
_getc_nolock, _getwc_nolock Reads a character from a stream without locking
_getch_nolock, _getwch_nolock Gets a character from the console without echo and without locking
_getchar_nolock, _getwchar_nolock Reads a character from the standard input without locking
_getche_nolock, _getwche_nolock Gets a character from the console with echo and without locking
_getdcwd_nolock, _wgetdcwd_nolock Gets the full path of the current working directory on the specified drive
_putc_nolock, _putwc_nolock Writes a character to a stream without locking
_putch_nolock, _putwch_nolock Writes a character to the console without locking
_putchar_nolock, _putwchar_nolock Writes a character to stdout without locking
_ungetc_nolock, _ungetwc_nolock Pushes a character back onto the stream without locking
_ungetch_nolock, _ungetwch_nolock Pushes back the last character that's read from the console without locking

See also

Input and output
Universal C runtime routines by category