ffs(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

ffs(3c)

ffs(3C)                  Standard C Library Functions                  ffs(3C)

NAME
       ffs,  ffsl,  ffsll,  fls, flsl, flsll - find first or last bit set in a
       bit string

SYNOPSIS
       #include <strings.h>

       int ffs(int value);


       #include <string.h>

       int ffsl(long value);


       int ffsll(long long value);


       int fls(int value);


       int flsl(long value);


       int flsll(long long value);

DESCRIPTION
       The ffs(), ffsl(), and ffsll() functions find  the  first  bit  set  in
       value and return the position of that bit.


       The fls(), flsl(), and flsll() functions find the last bit set in value
       and return the position of that bit.


       Bits are numbered starting at one (the least significant bit).

RETURN VALUES
       These  functions  return  the position of the requested bit, or 0 if no
       bits are set in value.

ERRORS
       No errors are defined.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE  VALUE  _  Interface StabilityCommitted _ MT-LevelAsync-Signal-
       Safe _ StandardSee below


   Standard
       See standards(7) for descriptions of the following standards:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) INTERFACESAPPLICA‐
       BLE STANDARDS _ ffs()T{
         POSIX.1-2001 through 2008,
         SUS through SUSv4,
         XPG4v2 through XPG7

       T} _ T{ ffsl(), ffsll(), fls(), flsl(), flsll() T}None


SEE ALSO
       attributes(7), standards(7)

HISTORY
       The ffsl(), fls(), and flsl() functions appeared in  FreeBSD  5.3.  The
       ffsll()  and  flsll()  functions  appeared in FreeBSD 7.1. All of these
       functions were added to Oracle Solaris in the Solaris 11.0 release.


       The ffs() function appeared in 4.3BSD. It was added to Solaris  in  the
       Solaris  2.0  release,  with  a prototype in the <string.h> header. The
       prototype for ffs() was added to the <strings.h> header in the  Solaris
       2.6 release as required by the XPG4v2 standard.

Oracle Solaris 11.4               2 Jun 2022                           ffs(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3