This website requires JavaScript.
Explore
Mirrors
Help
Sign In
Macintosh-Tools
/
Retro68
Watch
1
Star
0
Fork
0
You've already forked Retro68
mirror of
https://github.com/autc04/Retro68.git
synced
2024-12-21 13:29:36 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
2abae70456
Retro68
/
AutomatedTests
/
StdIO.c
9 lines
111 B
C
Raw
Normal View
History
Unescape
Escape
C library/system calls: clean up, implement open, read, write, close, lseek; clean up the command line gcc passes to ld
2017-10-08 17:28:10 +00:00
#
include
<stdio.h>
Declare all C function parameters Specify parameters for all C functions. Not specifying parameters is the same as specifying "void" in C++ and in C23 and later but that's not the case in C prior to C23. Compile C files with the same warnings as C++ files, additionally making the strict prototypes warning an error to catch such problems in the future. This commit isn't intended to address all the other warnings now being emitted.
2022-12-05 10:23:46 +00:00
int
main
(
void
)
C library/system calls: clean up, implement open, read, write, close, lseek; clean up the command line gcc passes to ld
2017-10-08 17:28:10 +00:00
{
Switch tab-indented files to 4-space indent
2019-08-18 11:21:00 +00:00
FILE
*
f
=
fopen
(
"
out
"
,
"
w
"
)
;
fprintf
(
f
,
"
OK
\n
"
)
;
fclose
(
f
)
;
C library/system calls: clean up, implement open, read, write, close, lseek; clean up the command line gcc passes to ld
2017-10-08 17:28:10 +00:00
}
Reference in New Issue
Copy Permalink