Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/utility/program/raise"

From cppreference.com
< cpp‎ | utility‎ | program
(Parameters: use proper template)
m (Text replace - "/sidebar" to "/navbar")
Line 1: Line 1:
 
{{cpp/title| raise}}
 
{{cpp/title| raise}}
{{cpp/utility/program/sidebar}}
+
{{cpp/utility/program/navbar}}
 
{{ddcl | header=csignal |
 
{{ddcl | header=csignal |
 
int raise( int sig );
 
int raise( int sig );

Revision as of 14:18, 15 June 2012

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
 
Defined in header <csignal>
int raise( int sig );

Sends signal sig to the program. The signal handler, specified using signal() is invoked.

If the user-defined signal handling strategy is not set using signal() yet, it is implementation-defined whether the signal will be ignored or default handler will be invoked.

Contents

Parameters

sig - the signal to be sent. It can be an implementation-defined value or one of the following values:
defines signal types
(macro constant) [edit]


Return value

0 upon success, non-zero value on failure.

Example

See also

sets a signal handler for particular signal
(function) [edit]
C documentation for raise