Opensourceinfo

Main Menu
Login

Register new account

Request new password


Fast Easy Web Hosting
Your Say About Movies
Cigars Review

Man Pages

Subroutines
Browse in : All > Documents > Man Pages > Subroutines (8513)

NAME

a64l, l64a - convert between long and base-64  

SYNOPSIS

#include <stdlib.h>

long a64l(char *str64);

char *l64a(long value);

 

DESCRIPTION

These functions provide a conversion between 32-bit long integers and little-endian base-64 ASCII strings (of length zero to six). If the string used as argument for a64l() has length greater than six, only the first six bytes are used. If longs have more than 32 bits, then l64a() uses only the low order 32 bits of value, and a64l() sign-extends its 32-bit result.

The 64 digits in the base 64 system are:

`.` represents a 0 `/` represents a 1 0-9 represent 2-11 A-Z represent 12-37 a-z represent 38-63


So 123 = 59*64^0 + 1*64^1 = "v/".  

NOTES

The value returned by a64l() may be a pointer to a static buffer, possibly overwritten by later calls.

The behaviour of l64a() is undefined when value is negative. If value is zero, it returns an empty string.

These functions are broken in glibc before 2.2.5 (puts most significant digit first).

This is not the encoding used by uuencode(1).  

CONFORMING TO

XPG 4.2, POSIX 1003.1-2001.  

SEE ALSO

uuencode(1), itoa(3), strtoul(3)
Polls
What I like best about Firefox 3
OpenSource Headlines
  • Mandriva: Subject: [Security Announce] [ MDVSA-2008:232 ] dovecot

    The ACL plugin in dovecot prior to version 1.1.4 treated negative access rights as though they were positive access rights, which allowed attackers to bypass intended access restrictions .

  • Adobe previews 64-bit Flash

    The new 64-bit build of Flash Player 10 for Linux allows users running 64-bit OSes to browse the web using purely native code.

  • SCO Files an Amended Schedule F

    ArchiveExplorer BK Timeline Cast: Lawyers Contracts Courts DRM GPL HTML How To IBM Timeline Legal Docs MS Litigation Novell Timeline Novell v. MS Novell-MS Deal ODF/OOXML OOXML Appeals Patents Quote Database ...

  • Windows HPC hits top 10 among supercomputers

    Microsoft on Tuesday hit another high-performance computing milestone by placing its server for the first time in the top 10 on the list of the Top 500 super computers as judged by Top500.org. Just a year ago, ...

  • Yahoo to make BrowserPlus open-source

    It was probably inevitable given what Google did with Gears, but Yahoo said Tuesday it's releasing BrowserPlus software as open source software.

  • Bugtraq: [USN-667-1] Firefox and xulrunner vulnerabilities

    Jamie Strandboge =========================================================== Ubuntu Security Notice USN-667-1 November 17, 2008 firefox, firefox-3.0, xulrunner-1.9 vulnerabilities CVE-2008-0017, CVE-2008-4582, ...

  • Cray CX1 Taps Clustercorp's Rocks+ for Linux

    SEATTLE, WA and SAN JOSE, CA, November 18 / MARKET WIRE/ -- Cray Inc. and Clustercorp today announced the immediate availability of the Cray CX1 deskside supercomputer preloaded with Rocks+ 5, the commercial ...

  • Red Hat Delivers Dramatic Cost Savings and Performance to World's...

    Red Hat Delivers Dramatic Cost Savings and Performance to Worlda s Most Demanding Mission-Critical Platforms 2008-11-18 16:21:02 - www.redhat.com - Red Hat, Inc.

  • The Microsoft-Novell Linux deal two years later

    Two years ago this month, Microsoft forged its controversial partnership with Novell that, among other things, had the two companies agreeing not to sue each other over intellectual property issues, in part to ...