mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:45:50 +00:00
[REACTOS] Use standard conforming names
- Use _alloca instead of non-standard alloca - Use _TCHAR instead of non-standard TCHAR - Use _off_t instead of deprecated off_t - Use _O_BINARY instead of O_BINARY
This commit is contained in:
parent
1de09c477c
commit
b707be90a1
10 changed files with 41 additions and 40 deletions
|
@ -5,7 +5,7 @@
|
|||
* PURPOSE: Concatenates STDIN or an arbitrary number of files to STDOUT
|
||||
* PROGRAMMERS: David Welch
|
||||
* Semyon Novikov (tappak)
|
||||
* Hermès Bélusca - Maïto
|
||||
* Hermès Bélusca - Maïto
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -54,7 +54,7 @@ int main(int argc, char* argv[])
|
|||
}
|
||||
|
||||
/* Set STDOUT to binary */
|
||||
_setmode(_fileno(stdout), O_BINARY);
|
||||
_setmode(_fileno(stdout), _O_BINARY);
|
||||
|
||||
/* Special case where we run 'cat' without any argument: we use STDIN */
|
||||
if (argc <= 1)
|
||||
|
@ -62,7 +62,7 @@ int main(int argc, char* argv[])
|
|||
unsigned int ch;
|
||||
|
||||
/* Set STDIN to binary */
|
||||
_setmode(_fileno(stdin), O_BINARY);
|
||||
_setmode(_fileno(stdin), _O_BINARY);
|
||||
|
||||
#if 0 // Version using feof()
|
||||
ch = fgetc(stdin);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue