You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question about the use of extern in the Library/StdDriver/inc/fmc.h header file. Specifically, I noticed that the extern keyword is used in function declarations. However, as far as I know, C already assumes extern by default when declaring functions.
I would like to understand why extern is used in these function declarations, and whether it is necessary.
Thanks in advance for any clarification you can provide!
The text was updated successfully, but these errors were encountered:
In C, function declarations are considered implicitly extern by default. When you declare a function in C, it is assumed to have external linkage, meaning that it can be accessed by other source files.
Rather I would believe that this might be an Coding style choice or just to maintain consistency in all of the declarations in the header files.
As it doesn't alter any functionality of that feels like just bathing in the rain :)
Hi there,
I have a question about the use of
extern
in the Library/StdDriver/inc/fmc.h header file. Specifically, I noticed that theextern
keyword is used in function declarations. However, as far as I know, C already assumes extern by default when declaring functions.I would like to understand why
extern
is used in these function declarations, and whether it is necessary.Thanks in advance for any clarification you can provide!
The text was updated successfully, but these errors were encountered: