tldr/pages/common/c99.md

21 lines
472 B
Markdown
Raw Normal View History

# c99
2016-02-22 22:59:27 +00:00
> Compile C programs according to the ISO C standard.
> More information: <https://manned.org/c99>.
2016-02-22 22:59:27 +00:00
2016-02-23 00:35:42 +00:00
- Compile source file(s) and create an executable:
2016-02-22 22:59:27 +00:00
`c99 {{file.c}}`
- Compile source file(s) and specify the executable [o]utput filename:
2016-02-22 22:59:27 +00:00
`c99 -o {{executable_name}} {{file.c}}`
2016-02-23 00:35:42 +00:00
- Compile source file(s) and create object file(s):
2016-02-22 22:59:27 +00:00
`c99 -c {{file.c}}`
2016-02-23 00:35:42 +00:00
- Compile source file(s), link with object file(s), and create an executable:
2016-02-22 22:59:27 +00:00
`c99 {{file.c}} {{file.o}}`