C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
Testing Functions

Functions for Testing Only. More...

Functions

int segmentation_fault ()
 Function to intentionally cause a segmentation fault for testing purposes.

Detailed Description

Functions for Testing Only.

Function Documentation

◆ segmentation_fault()

int segmentation_fault ( )

Function to intentionally cause a segmentation fault for testing purposes.

Note
This function is designed to intentionally cause a segmentation fault by dereferencing a null pointer. It is intended for testing purposes only and should not be used in production code. The caller should be aware that executing this function will crash the program.

Definition at line 1512 of file futil.c.

1513 {
1514 // int *p = NULL;
1515 // *p = 100;
1516
1517 return 0;