添加Doxygen注释的示例

This commit is contained in:
jackfiled 2022-05-04 16:24:05 +08:00
parent ff721884d4
commit dce94dcac3
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,11 @@
//
#include "example.h"
/**
* @brief stdin打印一个字符串
*
* @param str
*/
void print(char* str)
{
printf("%s", str);

9
main.c
View File

@ -1,7 +1,16 @@
#include "example.h"
/**
* @brief
*
* @return int 0
*/
int main()
{
/**
* @brief
*
*/
char* string = "Good morning!\n";
print(string);
return 0;