Server IP : 68.65.122.142  /  Your IP : 18.117.142.3
Web Server : LiteSpeed
System : Linux server167.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : glenirhm ( 1318)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/locale/ewo/../mk/../tzm/../fon/../doi/../eu_ES/../byn/../ru_RU/../../awk/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/locale/ewo/../mk/../tzm/../fon/../doi/../eu_ES/../byn/../ru_RU/../../awk/bits2str.awk
# bits2str --- turn an integer into readable ones and zeros

function bits2str(bits,        data, mask)
{
    if (bits == 0)
        return "0"

    mask = 1
    for (; bits != 0; bits = rshift(bits, 1))
        data = (and(bits, mask) ? "1" : "0") data

    while ((length(data) % 8) != 0)
        data = "0" data

    return data
}