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

imaxabs.3p (2226B)


  1. '\" et
  2. .TH IMAXABS "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. imaxabs
  12. \(em return absolute value
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <inttypes.h>
  17. .P
  18. intmax_t imaxabs(intmax_t \fIj\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. \fIimaxabs\fR()
  27. function shall compute the absolute value of an integer
  28. .IR j .
  29. If the result cannot be represented, the behavior is undefined.
  30. .SH "RETURN VALUE"
  31. The
  32. \fIimaxabs\fR()
  33. function shall return the absolute value.
  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. The absolute value of the most negative number cannot be represented in
  42. two's complement.
  43. .SH RATIONALE
  44. None.
  45. .SH "FUTURE DIRECTIONS"
  46. None.
  47. .SH "SEE ALSO"
  48. .IR "\fIimaxdiv\fR\^(\|)"
  49. .P
  50. The Base Definitions volume of POSIX.1\(hy2017,
  51. .IR "\fB<inttypes.h>\fP"
  52. .\"
  53. .SH COPYRIGHT
  54. Portions of this text are reprinted and reproduced in electronic form
  55. from IEEE Std 1003.1-2017, Standard for Information Technology
  56. -- Portable Operating System Interface (POSIX), The Open Group Base
  57. Specifications Issue 7, 2018 Edition,
  58. Copyright (C) 2018 by the Institute of
  59. Electrical and Electronics Engineers, Inc and The Open Group.
  60. In the event of any discrepancy between this version and the original IEEE and
  61. The Open Group Standard, the original IEEE and The Open Group Standard
  62. is the referee document. The original Standard can be obtained online at
  63. http://www.opengroup.org/unix/online.html .
  64. .PP
  65. Any typographical or formatting errors that appear
  66. in this page are most likely
  67. to have been introduced during the conversion of the source files to
  68. man page format. To report such errors, see
  69. https://www.kernel.org/doc/man-pages/reporting_bugs.html .