Created
October 20, 2020 02:56
-
-
Save k-takata/475693ff7b627d08866d4685449edbea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
int main(int argc, char *argv[]) | |
{ | |
HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE); | |
HANDLE hstdout = GetStdHandle(STD_OUTPUT_HANDLE); | |
char buf[256]; | |
DWORD cb; | |
ReadFile(hstdin, buf, sizeof(buf), &cb, NULL); | |
WriteFile(hstdout, buf, cb, &cb, NULL); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment