优化了命名

This commit is contained in:
lzy
2024-04-28 13:10:56 +08:00
parent d75a518c0f
commit ba9f2e37a7
155 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
#include "proj.h"
int i = 10;
int main()
{
printf("[%s]i=%d\n", __FUNCTION__, i);
func();
exit(0);
}

View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <stdlib.h>
#include "proj.h"
extern int i;
// extern i;也是可以的,会有警告
void func(void)
{
printf("[%s]i=%d\n", __FUNCTION__, i);
exit(0);
}

View File

@@ -0,0 +1,5 @@
#ifndef PROJ_H___
#define PROJ_H___
void func(void);
#endif