33 lines · 461 B · Text
RawDownload
.TH ABS 2.SH NAMEabs, labs \- integer absolute values.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.Bint	abs(int a).PP.Blong	labs(long a).SH DESCRIPTION.I Absreturnsthe absolute value of integer.IR a ,and.I labsdoes the same for a long..SH SOURCE.B /sys/src/libc/port/abs.c.SH SEE ALSO.IR floor (2)for.I fabs.SH DIAGNOSTICS.I Absand.I labsreturnthe most negative integer or long when the true result is unrepresentable.