OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / trunc.3
index 454cc6c..9de75fd 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
@@ -19,8 +20,9 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
-.TH TRUNC 3  2010-09-20 "" "Linux Programmer's Manual"
+.TH TRUNC 3  2013-06-21 "" "Linux Programmer's Manual"
 .SH NAME
 trunc, truncf, truncl \- round to integer, toward zero
 .SH SYNOPSIS
@@ -54,17 +56,31 @@ or
 .RE
 .ad
 .SH DESCRIPTION
-These functions round \fIx\fP to the nearest integer
+These functions round
+.I x
+to the nearest integer
 not larger in absolute value.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 These functions return the rounded integer value.
 
-If \fIx\fP is integral, infinite, or NaN, \fIx\fP itself is returned.
+If
+.IR x
+is integral, infinite, or NaN,
+.I x
+itself is returned.
 .SH ERRORS
 No errors occur.
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR trunc (),
+.BR truncf (),
+and
+.BR truncl ()
+functions are thread-safe.
+.SH CONFORMING TO
 C99, POSIX.1-2001.
 .SH NOTES
 The integral value returned by these functions may be too large
@@ -75,10 +91,18 @@ etc.).
 To avoid an overflow, which will produce undefined results,
 an application should perform a range check on the returned value
 before assigning it to an integer type.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR ceil (3),
 .BR floor (3),
 .BR lrint (3),
 .BR nearbyint (3),
 .BR rint (3),
 .BR round (3)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.