Question: Need help with first function ypeder struct WordRecord WordRecord; * Untangle () parses a chain of records stored in the memory region pointed to by
Need help with first function

ypeder struct WordRecord WordRecord; * Untangle () parses a chain of records stored in the memory region pointed to by pBuffer, and stores WordRecord objects representing the given data into the array supplied by the caller. Pre: Fat -= CLEAR or ENCRYPTED pBuffer points to a region of memory formatted as specified wordList points to an empty array large enough to hold all the WordRecord objects you ll need to create Post: wordList [0:nWords-1] hold WordRecord objects, where nwords is is the value returned by Untangle() Returns: the number of "words" found in the supplied quotation. uint8_t Untangle (DataFormat Fmt, const uints t* pBuffer, WordRecord* const wordlist) ; The function will access a scrambled quotation, stored in a memory region pointed to by pBuffer. The organization of the memory region is described in detail below. The function will analyze that memory region, and reconstruct the quotation by creating a sequence of WordRecord objects and storing them in an array provided by the caller. You will also implement a function that will deallocate all the dynamic content of such an array of WordRecord objects: Deallocates an array of WordRecord objects. Pre: wordList points to a dynamically-allocated array holding nWords WordRecord objects Post: all dynamic memory related to the array has been freed void clearWordRecords (WordRecord* const wordList, wint8 t nwords)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
