liveBook · Manning

Internal linkage

Internal linkage is the property restricting an identifier’s designated entity to a single translation unit.

How 2 Manning books explain it

Modern C, Third Edition

Internal linkage is the property restricting an identifier's designated entity to a single translation unit.

How it is used
Limits file-scope objects and functions to one translation unit when they need no connection to other object files.
How deep it goes
Distinguishes linkage from storage duration and relates static declarations to identifier scope and linker behavior.
Examples
Uses static file-scope functions and a comparison table covering declarations, scope, linkage, and duration.
What you can do after
Evaluate whether a C identifier should remain private to one translation unit or be shared through external linkage.

Read how Modern C, Third Edition explains internal linkage →

Modern C

Internal linkage is C identifier linkage that restricts an entity's correspondence to a single translation unit.

How it is used
Uses internal linkage to keep file- or block-associated identifiers from corresponding across object files.
How deep it goes
Explains identifier linkage, linker correspondence, scope, and storage-duration distinctions, while deferring fuller declaration combinations to a reference table.
Examples
Illustrates internal linkage through static variable and function declarations, alongside shadowing examples and a declaration table.
What you can do after
Evaluate whether declarations can correspond across object files and distinguish linkage from storage duration.

Read how Modern C explains internal linkage →

Related concepts

Questions about internal linkage

What is internal linkage?

Internal linkage is the property restricting an identifier’s designated entity to a single translation unit.

Which Manning books explain internal linkage?

Modern C, Third Edition and Modern C.

What is the difference between internal linkage and external linkage?

Internal linkage is the property restricting an identifier’s designated entity to a single translation unit. External linkage is the property that allows declarations in different translation units to designate the same entity.

What is internal linkage a kind of?

Internal linkage is a kind of linkage. Linkage is a C identifier property determining whether declarations in different scopes or translation units designate the same entity.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.