logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

labs.3p (2428B)


  1. '\" et
  2. .TH LABS "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. labs,
  12. llabs
  13. \(em return a long integer absolute value
  14. .SH SYNOPSIS
  15. .LP
  16. .nf
  17. #include <stdlib.h>
  18. .P
  19. long labs(long \fIi\fP);
  20. long long llabs(long long \fIi\fP);
  21. .fi
  22. .SH DESCRIPTION
  23. The functionality described on this reference page is aligned with the
  24. ISO\ C standard. Any conflict between the requirements described here and the
  25. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  26. .P
  27. The
  28. \fIlabs\fR()
  29. function shall compute the absolute value of the
  30. .BR long
  31. integer operand
  32. .IR i .
  33. The
  34. \fIllabs\fR()
  35. function shall compute the absolute value of the
  36. .BR "long long"
  37. integer operand
  38. .IR i .
  39. If the result cannot be represented, the behavior is undefined.
  40. .SH "RETURN VALUE"
  41. The
  42. \fIlabs\fR()
  43. function shall return the absolute value of the
  44. .BR long
  45. integer operand.
  46. .P
  47. The
  48. \fIllabs\fR()
  49. function shall return the absolute value of the
  50. .BR "long long"
  51. integer operand.
  52. .SH ERRORS
  53. No errors are defined.
  54. .LP
  55. .IR "The following sections are informative."
  56. .SH EXAMPLES
  57. None.
  58. .SH "APPLICATION USAGE"
  59. None.
  60. .SH RATIONALE
  61. None.
  62. .SH "FUTURE DIRECTIONS"
  63. None.
  64. .SH "SEE ALSO"
  65. .IR "\fIabs\fR\^(\|)"
  66. .P
  67. The Base Definitions volume of POSIX.1\(hy2017,
  68. .IR "\fB<stdlib.h>\fP"
  69. .\"
  70. .SH COPYRIGHT
  71. Portions of this text are reprinted and reproduced in electronic form
  72. from IEEE Std 1003.1-2017, Standard for Information Technology
  73. -- Portable Operating System Interface (POSIX), The Open Group Base
  74. Specifications Issue 7, 2018 Edition,
  75. Copyright (C) 2018 by the Institute of
  76. Electrical and Electronics Engineers, Inc and The Open Group.
  77. In the event of any discrepancy between this version and the original IEEE and
  78. The Open Group Standard, the original IEEE and The Open Group Standard
  79. is the referee document. The original Standard can be obtained online at
  80. http://www.opengroup.org/unix/online.html .
  81. .PP
  82. Any typographical or formatting errors that appear
  83. in this page are most likely
  84. to have been introduced during the conversion of the source files to
  85. man page format. To report such errors, see
  86. https://www.kernel.org/doc/man-pages/reporting_bugs.html .