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

abs.3p (2307B)


  1. '\" et
  2. .TH ABS "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. abs
  12. \(em return an integer absolute value
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <stdlib.h>
  17. .P
  18. int abs(int \fIi\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIabs\fR()
  27. function shall compute the absolute value of its integer operand,
  28. .IR i .
  29. If the result cannot be represented, the behavior is undefined.
  30. .SH "RETURN VALUE"
  31. The
  32. \fIabs\fR()
  33. function shall return the absolute value of its integer operand.
  34. .SH ERRORS
  35. No errors are defined.
  36. .LP
  37. .IR "The following sections are informative."
  38. .SH EXAMPLES
  39. None.
  40. .SH "APPLICATION USAGE"
  41. In two's-complement representation, the absolute value of the negative
  42. integer with largest magnitude
  43. {INT_MIN}
  44. might not be representable.
  45. .SH RATIONALE
  46. None.
  47. .SH "FUTURE DIRECTIONS"
  48. None.
  49. .SH "SEE ALSO"
  50. .IR "\fIfabs\fR\^(\|)",
  51. .IR "\fIlabs\fR\^(\|)"
  52. .P
  53. The Base Definitions volume of POSIX.1\(hy2017,
  54. .IR "\fB<stdlib.h>\fP"
  55. .\"
  56. .SH COPYRIGHT
  57. Portions of this text are reprinted and reproduced in electronic form
  58. from IEEE Std 1003.1-2017, Standard for Information Technology
  59. -- Portable Operating System Interface (POSIX), The Open Group Base
  60. Specifications Issue 7, 2018 Edition,
  61. Copyright (C) 2018 by the Institute of
  62. Electrical and Electronics Engineers, Inc and The Open Group.
  63. In the event of any discrepancy between this version and the original IEEE and
  64. The Open Group Standard, the original IEEE and The Open Group Standard
  65. is the referee document. The original Standard can be obtained online at
  66. http://www.opengroup.org/unix/online.html .
  67. .PP
  68. Any typographical or formatting errors that appear
  69. in this page are most likely
  70. to have been introduced during the conversion of the source files to
  71. man page format. To report such errors, see
  72. https://www.kernel.org/doc/man-pages/reporting_bugs.html .