I am trying to learn and understand the C code of lzma which is available from the LZMA SDK in 7zip website. I am not an expert in C programming so I am having a hard time understanding some functions.
One such function is the “LzmaEnc_Create” from the file LzmaEnc.c in the c code folder of lzma [line number 1700][ http://downloads.sourceforge.net/sevenzip/lzma920.tar.bz2].
I have copied the code of LzmaEnc_Create below.
I would really appreciate any help provided to help me learn and understand this program.
Ask your question and don't attach any files.
Sanjayan Ravi: the above function allocates memory for LZMA encoder. Some programmers inline such functions entirely: this may reduce (negligibly) binary code size and its execution time. Creating a separate function improves source code readability and manageability. Is this an answer to your question?
Igor Pavlov: I am sorry.
Thank you so much for your reply, this answers my question.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.