aboutsummaryrefslogtreecommitdiffstats
path: root/man3/sqrt.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-02-27 21:33:34 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-02-27 21:33:34 +0100
commita02ff13810cb384ff9eeff5042d6a01e8ae86b51 (patch)
tree19d33565d9137f1823f5cd975cabaad20da38295 /man3/sqrt.3
parent01ea535d660fbda28245b49a35def1e4e9a3f52e (diff)
downloadman-pages-a02ff13810cb384ff9eeff5042d6a01e8ae86b51.tar.gz
sqrt.3: Add LIBRARY section (libm)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3/sqrt.3')
-rw-r--r--man3/sqrt.35
1 files changed, 3 insertions, 2 deletions
diff --git a/man3/sqrt.3 b/man3/sqrt.3
index 5f6d84608d..f2aeb4c8cd 100644
--- a/man3/sqrt.3
+++ b/man3/sqrt.3
@@ -14,6 +14,9 @@
.TH SQRT 3 2021-03-22 "" "Linux Programmer's Manual"
.SH NAME
sqrt, sqrtf, sqrtl \- square root function
+.SH LIBRARY
+Math library
+.RI ( libm ", " -lm )
.SH SYNOPSIS
.nf
.B #include <math.h>
@@ -23,8 +26,6 @@ sqrt, sqrtf, sqrtl \- square root function
.BI "long double sqrtl(long double " x );
.fi
.PP
-Link with \fI\-lm\fP.
-.PP
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):