Set radix (16) for gdb
This commit is contained in:
parent
c35b33b613
commit
8103118fa4
4 changed files with 12 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
void lib1_function();
|
||||
void lib1_function(unsigned int i);
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
#include "lib3.h" // Include lib3's header to call lib3_function
|
||||
#include <stdio.h> // Include standard I/O here, as printf is used in this source file.
|
||||
|
||||
void lib1_function() {
|
||||
printf("This is a function from Library 1.\n");
|
||||
void lib1_function(unsigned int i)
|
||||
{
|
||||
printf("This is a function from Library 1. %u\n", i);
|
||||
lib2_function(); // Call function from lib2
|
||||
lib3_function(); // Call function from lib3
|
||||
printf("Lib1 has called functions from Lib2 and Lib3.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue