Name Description Size
.cvsignore 9
Makefile.in 596
plbase64.h PL_Base64Encode This routine encodes the data pointed to by the "src" parameter using the base64 algorithm, and returns a pointer to the result. If the "srclen" parameter is not zero, it specifies the length of the source data. If it is zero, the source data is assumed to be null-terminated, and PL_strlen is used to determine the source length. If the "dest" parameter is not null, it is assumed to point to a buffer of sufficient size (which may be calculated: ((srclen + 2)/3)*4) into which the encoded data is placed (without any termination). If the "dest" parameter is null, a buffer is allocated from the heap to hold the encoded data, and the result *will* be terminated with an extra null character. It is the caller's responsibility to free the result when it is allocated. A null is returned if the allocation fails. NOTE: when calculating ((srclen + 2)/3)*4), first ensure that srclen <= (PR_UINT32_MAX/4) * 3 to avoid PRUint32 overflow. 2891
plerror.h File: plerror.h * Description: Simple routine to print translate the calling thread's * error numbers and print them. 880
plgetopt.h File: plgetopt.h * Description: utilities to parse argc/argv 4710
plstr.h plstr.h This header file exports the API to the NSPR portable library or string- handling functions. This API was not designed as an "optimal" or "ideal" string library; it was based on the good ol' unix string.3 functions, and was written to 1) replace the libc functions, for cross-platform consistency, 2) complete the API on platforms lacking common functions (e.g., strcase*), and 3) to implement some obvious "closure" functions that I've seen people hacking around in our code. Point number three largely means that most functions have an "strn" limited-length version, and all comparison routines have a non-case- sensitive version available. 13426
README NSPR 2.0 libc functions 151