c - compression algorithm -
i'm working on compression algorithm wherein have write code in c. programme takes file , removes important bit in every character , stores compressed text in file. wrote function called compress shown below. i'm getting seg fault while freeing out_buf. help great pleasure.
you close out_fd twice, of course of study sec time invalid file descriptor. more that, need review utilize of sizeof() not same finding buffer size of dynamically-allocated buffer (sizeof returns size of pointer, not buffer). don't show calling code, using strcat() on buffer passed-in worth (is buffer passed caller big plenty result?).
anyway, should plenty going again...
c compression binaryfiles
No comments:
Post a Comment