summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/setjmp.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/api/setjmp.rst b/doc/api/setjmp.rst
index 7718047085c..c30e51c2b55 100644
--- a/doc/api/setjmp.rst
+++ b/doc/api/setjmp.rst
@@ -8,3 +8,13 @@ Long jump API
.. kernel-doc:: include/setjmp.h
:internal:
+
+Example
+-------
+
+Here is an example showing how to use the a long jump functions and
+initjmp() in particular:
+
+.. literalinclude:: ../../test/lib/initjmp.c
+ :language: c
+ :linenos: