From 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 22:58:58 -0500 Subject: removing all downloaded devdocs files --- devdocs/c/program%2Fraise.html | 43 ------------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 devdocs/c/program%2Fraise.html (limited to 'devdocs/c/program%2Fraise.html') diff --git a/devdocs/c/program%2Fraise.html b/devdocs/c/program%2Fraise.html deleted file mode 100644 index 5aa1e9e2..00000000 --- a/devdocs/c/program%2Fraise.html +++ /dev/null @@ -1,43 +0,0 @@ -

raise

Defined in header <signal.h>
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.

-

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)

Return value

​0​ upon success, non-zero value on failure.

-

Example

#include <signal.h>
-#include <stdio.h>
- 
-void signal_handler(int signal)
-{
-    printf("Received signal %d\n", signal);
-}
- 
-int main(void)
-{
-    // Install a signal handler.
-    signal(SIGTERM, signal_handler);
- 
-    printf("Sending signal %d\n", SIGTERM);
-    raise(SIGTERM);
-    printf("Exit main()\n");
-}

Output:

-
Sending signal 15
-Received signal 15
-Exit main()

References

See also

- -
sets a signal handler for particular signal
(function)
C++ documentation for raise
-

- © cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
- https://en.cppreference.com/w/c/program/raise -

-
-- cgit v1.2.3