第二章完结

This commit is contained in:
lzy
2024-03-12 22:05:13 +08:00
parent d64b6fe321
commit 0e9bf09117
15 changed files with 282 additions and 0 deletions

View File

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

View File

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

View File

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