Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Application-layer functions

MALLOC()

// Allocate memory for size of class and function table
                if(NULL == (pMe = MALLOC(nSize ))) { 
                return (ENOMEMORY); 

REALLOC()

                // resize the encoded data buffer
                pEncoded = REALLOC(pEncoded, dwEncodedLength);
            

FREE()

//  Free all allocated buffers
                for ( i = 0; i < pme->m_NumFiles; i++ )
                {
                if (pme->m_szFileArray[i])
                FREE((void *)pme->m_szFileArray[i]);
                }