Apply suggestions from code review

Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
serturx 2022-10-05 18:33:14 +02:00 committed by Krishna Vedala
parent 7a997f2755
commit 8241a58d42

View File

@ -2,7 +2,7 @@
* @file
* @author [serturx](https://github.com/serturx/)
* @brief Encode a null terminated string using [Run-length encoding](https://en.wikipedia.org/wiki/Run-length_encoding)
* @section Description
* @details
* Run-length encoding is a lossless compression algorithm.
* It works by counting the consecutive occurences symbols
* and encodes that series of consecutive symbols into the
@ -13,7 +13,7 @@
*
*/
#include <stdio.h> /// for printf
#include <stdio.h> /// for IO operations
#include <string.h> /// for string functions
#include <stdlib.h> /// for malloc/free
#include <assert.h> /// for assert