From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Jun 2015 20:16:15 +0000 Subject: Update documentation --- libc/funcs/c95/stdlib/fn.exit.html | 127 +++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 libc/funcs/c95/stdlib/fn.exit.html (limited to 'libc/funcs/c95/stdlib/fn.exit.html') diff --git a/libc/funcs/c95/stdlib/fn.exit.html b/libc/funcs/c95/stdlib/fn.exit.html new file mode 100644 index 0000000..1c181ea --- /dev/null +++ b/libc/funcs/c95/stdlib/fn.exit.html @@ -0,0 +1,127 @@ + + + + + + + + + + libc::funcs::c95::stdlib::exit - Rust + + + + + + + + + + + + + + + +
+

libc::funcs::c95::stdlib::exit + + [] + + [src]

+
pub unsafe extern fn exit(status: c_int) -> !

Exits the running program in a possibly dangerous manner.

+ +

Unsafety

+

While this forces your program to exit, it does so in a way that has +consequences. This will skip all unwinding code, which means that anything +relying on unwinding for cleanup (such as flushing and closing a buffer to a +file) may act in an unexpected way.

+ +

Examples

extern crate libc; + +fn main() { + unsafe { + libc::exit(1); + } +} +
+extern crate libc;
+
+fn main() {
+    unsafe {
+        libc::exit(1);
+    }
+}
+
+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3