Skip to content

Commit

Permalink
udpate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroModel committed Dec 1, 2024
1 parent 59257ee commit c5bc8ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,15 @@ int main()
{
int i;
::fast_io::io::scan(i);
// Equivalent to the function above
::fast_io::io::scan(::fast_io::c_stdin(), i);
}
```
### Scan from `native stdin`
* Note: scanning will read the data in native stdin into the buffer and clear some data in native stdin
* on non-windows systems (fd): (int)0
* on win32 (handle): GetStdHandle(STD_INPUT_HANDLE)
* on nt (handle): RtlGetCurrentPeb()->ProcessParameters->StandardInput
```cpp
#include <fast_io.h>

Expand Down

0 comments on commit c5bc8ef

Please sign in to comment.