mirror of
https://github.com/Hizenberg469/C1-Linux_SYS_Prog-AS-.git
synced 2026-04-19 18:32:24 +03:00
More Organised
This commit is contained in:
21
Header_files/A.h
Normal file
21
Header_files/A.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* =====================================================================================
|
||||
*
|
||||
* Filename: A.h
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 02/02/24 10:15:59 PM IST
|
||||
* Revision: none
|
||||
* Compiler: gcc
|
||||
*
|
||||
* Author: YOUR NAME (),
|
||||
* Organization:
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
|
||||
|
||||
#define max(a,b) ( a > b ? a : b )
|
||||
int sum(int a,int b);
|
||||
21
Header_files/B.h
Normal file
21
Header_files/B.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* =====================================================================================
|
||||
*
|
||||
* Filename: B.h
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 02/02/24 10:18:06 PM IST
|
||||
* Revision: none
|
||||
* Compiler: gcc
|
||||
*
|
||||
* Author: YOUR NAME (),
|
||||
* Organization:
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
|
||||
#include "A.h"
|
||||
#define min(a,b) ( a > b ? b : a )
|
||||
int multiply ( int a , int b );
|
||||
31
Header_files/app.c
Normal file
31
Header_files/app.c
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* =====================================================================================
|
||||
*
|
||||
* Filename: app.c
|
||||
*
|
||||
* Description:
|
||||
*
|
||||
* Version: 1.0
|
||||
* Created: 02/02/24 10:43:11 PM IST
|
||||
* Revision: none
|
||||
* Compiler: gcc
|
||||
*
|
||||
* Author: YOUR NAME (),
|
||||
* Organization:
|
||||
*
|
||||
* =====================================================================================
|
||||
*/
|
||||
|
||||
#include "B.h"
|
||||
#define square(x) ( x*x )
|
||||
|
||||
|
||||
int foo(int b);
|
||||
int foo(int b){
|
||||
|
||||
}
|
||||
|
||||
int main(){
|
||||
int a = square(15);
|
||||
return 0;
|
||||
}
|
||||
28
Header_files/app.i
Normal file
28
Header_files/app.i
Normal file
@@ -0,0 +1,28 @@
|
||||
# 0 "app.c"
|
||||
# 0 "<built-in>"
|
||||
# 0 "<command-line>"
|
||||
# 1 "/usr/include/stdc-predef.h" 1 3 4
|
||||
# 0 "<command-line>" 2
|
||||
# 1 "app.c"
|
||||
# 19 "app.c"
|
||||
# 1 "B.h" 1
|
||||
# 19 "B.h"
|
||||
# 1 "A.h" 1
|
||||
# 21 "A.h"
|
||||
int sum(int a,int b);
|
||||
# 20 "B.h" 2
|
||||
|
||||
int multiply ( int a , int b );
|
||||
# 20 "app.c" 2
|
||||
|
||||
|
||||
|
||||
int foo(int b);
|
||||
int foo(int b){
|
||||
|
||||
}
|
||||
|
||||
int main(){
|
||||
int a = ( 15*15 );
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user