Authors:
- João Fernandes - 202100718
- Rodrigo Santos - 202100722
- Rúben Dâmaso - 202100723
Teacher: Patrícia Macedo [Class 1ºL_EI-08]
$> make
$> ./prog
Valgrind is very useful to detect "memory leaks" if your program uses dynamic memory allocation. You must compile the program with debug symbols and then run the executable through valgrind
:
$> make debug
$> valgrind --leak-check=full ./prog
Alternatively, you can use the bash script already included:
$> make debug
$> bash mem_check.sh
When the program exits it will present you with memory leak information.
In the Run tab (left side) you should see a green play icon
You'll need doxygen
installed and follow the doxygen documentation format. A Doxyfile
is already provided that is suited for the C language. Use:
$> doxygen Doxyfile
and you'll end up with a html
folder containing the generated documentation.