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

ffs.3p (1951B)


  1. '\" et
  2. .TH FFS "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. ffs
  12. \(em find first set bit
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <strings.h>
  17. .P
  18. int ffs(int \fIi\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIffs\fR()
  23. function shall find the first bit set (beginning with the least
  24. significant bit) in
  25. .IR i ,
  26. and return the index of that bit. Bits are numbered starting at one
  27. (the least significant bit).
  28. .SH "RETURN VALUE"
  29. The
  30. \fIffs\fR()
  31. function shall return the index of the first bit set. If
  32. .IR i
  33. is 0, then
  34. \fIffs\fR()
  35. shall return 0.
  36. .SH ERRORS
  37. No errors are defined.
  38. .LP
  39. .IR "The following sections are informative."
  40. .SH EXAMPLES
  41. None.
  42. .SH "APPLICATION USAGE"
  43. None.
  44. .SH RATIONALE
  45. None.
  46. .SH "FUTURE DIRECTIONS"
  47. None.
  48. .SH "SEE ALSO"
  49. The Base Definitions volume of POSIX.1\(hy2017,
  50. .IR "\fB<strings.h>\fP"
  51. .\"
  52. .SH COPYRIGHT
  53. Portions of this text are reprinted and reproduced in electronic form
  54. from IEEE Std 1003.1-2017, Standard for Information Technology
  55. -- Portable Operating System Interface (POSIX), The Open Group Base
  56. Specifications Issue 7, 2018 Edition,
  57. Copyright (C) 2018 by the Institute of
  58. Electrical and Electronics Engineers, Inc and The Open Group.
  59. In the event of any discrepancy between this version and the original IEEE and
  60. The Open Group Standard, the original IEEE and The Open Group Standard
  61. is the referee document. The original Standard can be obtained online at
  62. http://www.opengroup.org/unix/online.html .
  63. .PP
  64. Any typographical or formatting errors that appear
  65. in this page are most likely
  66. to have been introduced during the conversion of the source files to
  67. man page format. To report such errors, see
  68. https://www.kernel.org/doc/man-pages/reporting_bugs.html .