- publishing free software manuals
Comparing and Merging Files with GNU diff and patch
by David MacKenzie, Paul Eggert, and Richard Stallman
Paperback (6"x9"), 120 pages
ISBN 0954161750
RRP £12.95 ($19.95)

"Well packaged... the quality of information is excellent" --- Linux User and Developer Magazine (Issue 36, Feb 2004) Get a printed copy>>>

2.3.3.2 Showing C Function Headings

To show in which functions differences occur for C and similar languages, you can use the -p or --show-c-function option. This option automatically defaults to the context output format (see section 2.3.1 Context Format), with the default number of lines of context. You can override that number with -C lines elsewhere in the command line. You can override both the format and the number with -U lines elsewhere in the command line.

The -p and --show-c-function options are equivalent to -F '^[[:alpha:]$_]' if the unified format is specified, otherwise -c -F '^[[:alpha:]$_]' (see section 2.3.3.1 Showing Lines That Match Regular Expressions). GNU diff provides them for the sake of convenience.

ISBN 0954161750Comparing and Merging Files with GNU diff and patchSee the print edition