HP aC++/HP C A.06.25 Programmer's Guide

Use #pragma FINI to specify a termination function. The function specified by the
FINI pragma is called after the program terminates by either calling the libc exit
function, returning from the main or _start functions, or when the shared library,
which contains the FINI is unloaded from memory. Like the function called by the
INIT pragma, the termination function takes no arguments and returns nothing. For
example,
#pragma FINI "my_fini"
void my_fini() { ... do some clean up ... }
Copyright Notice and Identification Pragmas
The following pragmas can be used to insert strings in code.
COPYRIGHT
#pragma COPYRIGHT "string
string is the set of characters included in the copyright message in the object file.
The COPYRIGHT pragma specifies a string to include in the copyright message and
puts the copyright message into the object file.
If no date is specified (using pragma COPYRIGHT_DATE), the current year is used in
the copyright message. For example, assuming the year is 1999, the directive #pragma
COPYRIGHT "Acme Software" places the following string in the object code:
(C) Copyright Acme Software, 1999. All rights reserved. No part
of this program may be photocopied, reproduced, or transmitted
without prior written consent of Acme Software.
The following pragmas
#pragma COPYRIGHT_DATE "1990-1999"
#pragma COPYRIGHT "Brand X Software"
place the following string in the object code:
(C) Copyright Brand X Software, 1990-1999. All rights reserved.
No part of this program may be photocopied, reproduced, or
transmitted without prior written consent of Brand X Software.
COPYRIGHT_DATE
#pragma COPYRIGHT_DATE "string"
string is a date string used by the COPYRIGHT pragma.
This pragma specifies a date string to be included in the copyright message.
Use the COPYRIGHT pragma to put the copyright message into the object file.
For example, #pragma COPYRIGHT_DATE "1988-1992" places the string
"1988-1992" in the copyright message.
128 Pragma Directives and Attributes