DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
m4 macro processor

File inclusion

A new file can be included in the input at any time with the built-in macro include:

   include(filename)
inserts the contents of filename in place of the macro and its argument. The value of include (its replacement text) is the contents of the file. If needed, the contents can be captured in definitions and so on.

A fatal error occurs if the file named in include cannot be accessed. To get some control over this situation, the alternate form sinclude (``silent include'') can be used. This built-in says nothing and continues if the file named cannot be accessed.


Next topic: Diversions
Previous topic: Arithmetic built-ins

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005