Share via


UUDecode

 

Decodes a string of data that has been uuencoded such as by a previous call to UUEncode.

Syntax

      inline BOOL UUDecode(
   BYTE* pbSrcData,
   int nSrcLen,
   BYTE* pbDest,
   int* pnDestLen 
) throw( );

Parameters

  • pbSrcData
    The string containing the data to be decoded.

  • nSrcLen
    The length in bytes of pbSrcData.

  • pbDest
    Caller-allocated buffer to receive the decoded data.

  • pnDestLen
    Pointer to a variable that contains the length in bytes of pbDest. If the function succeeds, the variable receives the number of bytes written to the buffer. If the function fails, the variable receives the required length in bytes of the buffer.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

This uuencoding implementation follows the POSIX P1003.2b/D11 specification.

Requirements

Header: atlenc.h

See Also

Active Template Library (ATL) Concepts
ATL COM Desktop Components
ATL Functions Alphabetical Reference
UUDecodeGetRequiredLength
UUEncode
UUEncodeGetRequiredLength