man > c89(1)

📖 NAME

c89 — ANSI (1989) C compiler

🚀 Quick Reference

Use CaseCommandDescription
Compile with ANSI Cc89 -o program program.cCompile a C source file using strict ANSI C89 mode
Enable all pedantic warningsc89 -pedantic -o program program.cWarn about all non-ANSI constructs
Treat warnings as errorsc89 -pedantic-errors -o program program.cFail compilation on any non-ANSI violation
Define ANSI source symbolc89 -D_ANSI_SOURCE -o program program.cExplicitly define the _ANSI_SOURCE preprocessor macro
View all compiler optionsman cc or cc --helpSee full option list for the underlying compiler

📝 SYNOPSIS

c89 [-pedantic] [-pedantic-errors] [-D_ANSI_SOURCE] options ...

🔍 DESCRIPTION

Calls the C compiler (cc) with the given options, using a C language environment compatible with the -ansiC specification.

This includes proper handling of trigraphs, disabling non-ANSI compiler features (such as asm, inline, typeof, and the $ character in identifiers), and definition of the preprocessor symbol __STRICT_ANSI__.

📚 SEE ALSO

cc(1) for a description of all options.

📜 HISTORY

Appeared in NetBSD 1.4.

🐛 BUGS

Since c89 is a shell wrapper script to cc, compile errors are prefixed by "cc:".

c89(1)
📖 NAME 🚀 Quick Reference 📝 SYNOPSIS 🔍 DESCRIPTION 📚 SEE ALSO 📜 HISTORY 🐛 BUGS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 12:21 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!