├── .DS_Store
├── .idea
├── .gitignore
├── .name
├── Introduction-to-Programming.iml
├── misc.xml
├── modules.xml
└── vcs.xml
├── CMakeLists.txt
├── P-01.c
├── P-02.c
├── P-03.c
├── P-04.c
├── P-05.c
├── P-06.c
├── P-07.c
├── P-08.c
├── P-09.c
├── P-10.c
├── P-11.c
├── P-12.c
├── P-13.c
├── P-14.c
├── P-15.c
├── P-16.c
├── P-17.c
├── P-18.c
├── P-19.c
├── P-20.c
├── P-21.c
├── P-22.c
├── P-23.c
├── P-24.c
├── P-25.c
├── P-26.c
├── P-27.c
├── P-28.c
├── P-29.c
├── P-30.c
├── P-31.c
├── P-32.c
├── P-33.c
├── P-34.c
├── P-35.c
├── P-36.c
├── P-37.c
├── P-38.c
├── P-39.c
├── P-40.c
├── P-41.c
├── P-42.c
├── P-43.c
├── P-44.c
├── P-45.c
├── P-46.c
├── P-47.c
├── P-48.c
├── P-49.c
├── P-50.c
├── P-51.c
├── P-52.c
├── P-53.c
├── P-54.c
├── P-55.c
├── P-56.c
├── P-57.c
├── P-58.c
├── P-59.c
├── P-60.c
├── P-61.c
├── P-62.c
├── P-63.c
├── P-64.c
├── P-65.c
├── P-66.c
├── P-67.c
├── P-68.c
├── P-69.c
├── P-70.c
├── P-71.c
├── P-72.c
├── P-73.c
├── P-74.c
├── P-75.c
├── P-76.c
├── P-77.c
├── P-78.c
├── P-79.c
├── P-80.c
├── P-81.c
├── P-82.c
├── P-83.c
├── P-84.c
├── P-85.c
├── P-86.c
├── P-87.c
├── P-88.c
├── P-89.c
├── P-90.c
├── P-91.c
├── P-92.c
├── P-93.c
├── P-94.c
├── cmake-build-debug
├── .cmake
│ └── api
│ │ └── v1
│ │ ├── query
│ │ ├── cache-v2
│ │ ├── cmakeFiles-v1
│ │ ├── codemodel-v2
│ │ └── toolchains-v1
│ │ └── reply
│ │ ├── cache-v2-d619b76b1cdde7f4b5ec.json
│ │ ├── cmakeFiles-v1-3111d43963e0792374af.json
│ │ ├── codemodel-v2-9c2da1d38a758d82d408.json
│ │ ├── directory-.-Debug-f5ebdc15457944623624.json
│ │ ├── index-2023-11-03T04-08-32-0218.json
│ │ ├── target-Introduction_to_Programming-Debug-016be250be9cd03ae8f0.json
│ │ └── toolchains-v1-5896f1444c2b2e9a8321.json
├── .ninja_deps
├── .ninja_log
├── CMakeCache.txt
├── CMakeFiles
│ ├── 3.26.4
│ │ ├── CMakeCCompiler.cmake
│ │ ├── CMakeDetermineCompilerABI_C.bin
│ │ ├── CMakeSystem.cmake
│ │ └── CompilerIdC
│ │ │ ├── CMakeCCompilerId.c
│ │ │ └── CMakeCCompilerId.o
│ ├── CMakeConfigureLog.yaml
│ ├── Introduction_to_Programming.dir
│ │ ├── a.c.o
│ │ ├── b.c.o
│ │ ├── c.c.o
│ │ ├── d.c.o
│ │ ├── e.c.o
│ │ ├── f.c.o
│ │ ├── g.c.o
│ │ ├── h.c.o
│ │ ├── i.c.o
│ │ ├── j.c.o
│ │ ├── k.c.o
│ │ ├── l.c.o
│ │ ├── m.c.o
│ │ ├── o.c.o
│ │ ├── ppp.c.o
│ │ ├── sample.c.o
│ │ └── testing.c.o
│ ├── TargetDirectories.txt
│ ├── clion-Debug-log.txt
│ ├── clion-environment.txt
│ ├── cmake.check_cache
│ └── rules.ninja
├── Introduction_to_Programming
├── Testing
│ └── Temporary
│ │ └── LastTest.log
├── build.ninja
├── cmake_install.cmake
├── sample.txt
└── sample.txt
├── sample
└── sample.c
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/.DS_Store
--------------------------------------------------------------------------------
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 | # Datasource local storage ignored files
7 | /dataSources/
8 | /dataSources.local.xml
9 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | Introduction_to_Programming
--------------------------------------------------------------------------------
/.idea/Introduction-to-Programming.iml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.26)
2 | project(Introduction_to_Programming C)
3 |
4 | set(CMAKE_C_STANDARD 11)
5 |
6 | include_directories(.)
7 |
8 | add_executable(Introduction_to_Programming
9 | sample.c
10 | )
11 |
--------------------------------------------------------------------------------
/P-01.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to print the memory addresses of 5 variables.
2 | #include
3 | int main()
4 | {
5 | int a=10;
6 | int b=20;
7 | int c=30;
8 | int d=40;
9 | int e=50;
10 | printf("%p\n",&a);
11 | printf("%p\n",&b);
12 | printf("%p\n",&c);
13 | printf("%p\n",&d);
14 | printf("%p\n",&e);
15 | }
--------------------------------------------------------------------------------
/P-02.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to change the value of a variable by taking an input from the user.
2 | #include
3 | int main()
4 | {
5 | int a=10;
6 | printf("%d\n",a);
7 | scanf("%d\n",&a);
8 | printf("%d\n",a);
9 | }
--------------------------------------------------------------------------------
/P-03.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to perform addition,substraction,multiplication and division of two variable by taking user input.
2 | #include
3 | int main()
4 | {
5 | int a,b,c,d,e,f;
6 | scanf("%d%d",&a,&b);
7 | c=a+b;
8 | d=a-b;
9 | e=a*b;
10 | f=b/a;
11 | printf("Addition=%d\n",c);
12 | printf("Substaction=%d\n",d);
13 | printf("Multiplication=%d\n",e);
14 | printf("Division=%d\n",f);
15 | }
--------------------------------------------------------------------------------
/P-04.c:
--------------------------------------------------------------------------------
1 | //Write a program to swap the values of variable a & b.
2 | #include
3 | int main()
4 | {
5 | int a,b,c;
6 | printf("Enter the value of A and B:\n");
7 | scanf("%d%d",&a,&b);
8 | c=a;
9 | a=b;
10 | b=c;
11 | printf("The new value of A:%d\n",a);
12 | printf("The new value of B:%d\n",b);
13 | }
--------------------------------------------------------------------------------
/P-05.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to swap the values of variable a & b without using 3rd variable.
2 | #include
3 | int main()
4 | {
5 | int a,b;
6 | printf("Enter the values of A and B:\n");
7 | scanf("%d%d",&a,&b);
8 | a=a+b;
9 | b=a-b;
10 | a=a-b;
11 | printf("The new value of A is:%d\n",a);
12 | printf("The new value of B is:%d\n",b);
13 | }
--------------------------------------------------------------------------------
/P-06.c:
--------------------------------------------------------------------------------
1 | //Write a program to get the discriminant value of a quadratic equation.
2 | #include
3 | int main()
4 | {
5 | int a,b,c,D;
6 | printf("Enter the values of A,B and C:\n");
7 | scanf("%d%d%d",&a,&b,&c);
8 | D=(b*b)-(4*a*c);
9 | printf("The value of Discriminant is:%d\n",D);
10 | }
--------------------------------------------------------------------------------
/P-07.c:
--------------------------------------------------------------------------------
1 | //Write a program to convert the value of temperature from degree celcius to degree fahrenheit.
2 | #include
3 | int main()
4 | {
5 | float c,f;
6 | printf("Enter the temperature in celcius :\n");
7 | scanf("%f",&c);
8 | f=(c*9/5)+32;
9 | printf("%f\n",f);
10 | }
--------------------------------------------------------------------------------
/P-08.c:
--------------------------------------------------------------------------------
1 | //Write a program to find out the area of a circle.The circle's radius is user input.
2 | #include
3 | int main()
4 | {
5 | int a,r;
6 | float area;
7 | printf("Enter the value of radius:\n");
8 | scanf("%d",&r);
9 | a=r*r;
10 | area=3.14*a;
11 | printf("The area of the circle is:%f\n",area);
12 | }
--------------------------------------------------------------------------------
/P-09.c:
--------------------------------------------------------------------------------
1 | //Write a program to swap the values of variable a & b without using 3rd variable and + - operators.
2 | #include
3 | int main()
4 | {
5 | int a,b;
6 | printf("Enter the value of A and B:\n");
7 | scanf("%d%d",&a,&b);
8 | a=a*b;
9 | b=a/b;
10 | a=a/b;
11 | printf("The new value of A:%d\n",a);
12 | printf("The new value of B:%d\n",b);
13 | }
--------------------------------------------------------------------------------
/P-10.c:
--------------------------------------------------------------------------------
1 | //Write a program to print the following pyramid.
2 | *
3 | * *
4 | * * *
5 | #include
6 | int main()
7 | {
8 | printf(" *\n");
9 | printf(" * *\n");
10 | printf(" * * *\n");
11 | }
--------------------------------------------------------------------------------
/P-11.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to make your own digital storage converter by taking the size in KB and convert it MB,GB and TB.
2 | #include
3 | int main()
4 | {
5 | float KB;
6 | printf("Enter the size in Kilo Bytes:\n");
7 | scanf("%f",&KB);
8 | printf("Size in Mega Bytes:%f\n",KB*0.001);
9 | printf("Size in Giga Bytes:%f\n",KB*0.000001);
10 | printf("Size in Tera Bytes:%f\n",KB*0.000000001);
11 | }
--------------------------------------------------------------------------------
/P-12.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to calculate the area of triangle using Haron's formula.
2 | #include
3 | #include
4 | int main()
5 | {
6 | float s,a,b,c,area,e,f,g,h;
7 | printf("Enter the values of A,B and C:\n");
8 | scanf("%f%f%f",&a,&b,&c);
9 | s=(a+b+c)/2;
10 | e=s-a;
11 | f=s-b;
12 | g=s-c;
13 | h=s*e*f*g;
14 | area=sqrt(h);
15 | printf("Area of triangle is:%f\n",area);
16 | }
--------------------------------------------------------------------------------
/P-13.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a line is straight line or not.
2 | #include
3 | int main()
4 | {
5 | float y,m,x,c;
6 | printf("Enter the values of Y,X,M and C:\n");
7 | scanf("%f%f%f%f",&y,&x,&m,&c);
8 | float a=(m*x)+c;
9 | int sl=(y==a)?(y==a):(y==a);
10 | printf("%d\n",sl);
11 | }
--------------------------------------------------------------------------------
/P-14.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to find the distance between 2 points.
2 | #include
3 | #include
4 | int main()
5 | {
6 | float x1,x2,y1,y2,d,e,f,g,h,a;
7 | printf("Enter the values of X_1,X_2,Y_1 and Y_2:\n");
8 | scanf("%f%f%f%f",&x1,&x2,&y1,&y2);
9 | e=x2-x1;
10 | f=y2-y1;
11 | g=pow(e,2);
12 | h=pow(f,2);
13 | a=g+h;
14 | d=sqrt(a);
15 | printf("Distance:%f\n",d);
16 | }
--------------------------------------------------------------------------------
/P-15.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a triangle is right angled triangle or not.
2 | #include
3 | #include
4 | int main()
5 | {
6 | float h,hy,b,a,c,d,v;
7 | printf("Enter the values of H,HY and B:\n");
8 | scanf("%f%f%f",&h,&hy,&b);
9 | a=pow(h,2);
10 | c=pow(b,2);
11 | d=a+c;
12 | v=sqrt(d);
13 | int ab=(hy==v)?(hy==v):(hy==v);
14 | printf("%d\n",ab);
15 | }
16 |
--------------------------------------------------------------------------------
/P-16.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to take the name,program,e-mail ID,birth year of the student and calculate the age and display all the details.
2 | #include
3 | int main()
4 | {
5 | char name[50];
6 | char prog[30];
7 | char email[50];
8 | int year;
9 | printf("Enter name:\n");
10 | scanf("%s",&name);
11 | printf("Enter Program:\n");
12 | scanf("%s",&prog);
13 | printf("Enter E-Mail:\n");
14 | scanf("%s",&email);
15 | printf("Enter Bith Year:\n");
16 | scanf("%d",&year);
17 | printf("------------------------\n");
18 | printf("Your name:%s\n",name);
19 | printf("Your program:%s\n",prog);
20 | printf("Your e-mail:%s\n",email);
21 | printf("Your age:%d\n",2023-year);
22 | }
--------------------------------------------------------------------------------
/P-17.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to find out the Simple and Compound Interest.
2 | #include
3 | int main()
4 | {
5 | float p,r,t,SI,CI,w,A,f,d,v;
6 | printf("Enter the value of P,R and T:\n");
7 | scanf("%f%f%f",&p,&r,&t);
8 | v=p*r*t;
9 | SI=v/100;
10 | f=r/100;
11 | d=1+f;
12 | w=pow(d,t);
13 | A=p*w;
14 | CI=A-p;
15 | printf("The required Simple and Compound Interest is:%f\t%f\n",SI,CI);
16 | }
17 |
--------------------------------------------------------------------------------
/P-18.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to input a number and check whether it positive or negative.
2 | #include
3 | int main()
4 | {
5 | int a;
6 | printf("Enter the value of A:\n");
7 | scanf("%d",&a);
8 | if(a>0)
9 | printf("A is positive");
10 | else
11 | printf("A is negative");
12 | }
--------------------------------------------------------------------------------
/P-19.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to make your own currency converter.
2 | #include
3 | int main()
4 | {
5 | float ruppees;
6 | printf("Enter the amount in Ruppees:\n");
7 | scanf("%f",&ruppees);
8 | printf("Amount in Dollars:%f\n",ruppees*0.012);
9 | printf("Amount in Euros:%f\n",ruppees*0.011);
10 | printf("Amount in Yans:%f\n",ruppees*1.77);
11 | printf("Amount in Rubels:%f\n",ruppees*1.16);
12 | }
13 |
--------------------------------------------------------------------------------
/P-20.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to input 2 number and find the larger among the two.
2 | #include
3 | int main()
4 | {
5 | int a,b;
6 | printf("Enter the value of A and B:\n");
7 | scanf("%d%d",&a,&b);
8 | if(a>b)
9 | printf("A is greater");
10 | else
11 | printf("B is greater");
12 | }
--------------------------------------------------------------------------------
/P-21.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a number odd or even.
2 | #include
3 | int main()
4 | {
5 | int a,b;
6 | printf("Enter the value of A:\n");
7 | scanf("%d",&a);
8 | b=a%2;
9 | if(b==0)
10 | printf("A is even");
11 | else
12 | printf("A is odd");
13 | }
--------------------------------------------------------------------------------
/P-22.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a year is leap year or not.
2 | #include
3 | int main()
4 | {
5 | int year;
6 | printf("Enter Year:");
7 | scanf("%d",&year);
8 | if((year%4==0)&&((year%400==0)||(year%100!=0))){
9 | printf("The year is a leap year");
10 | }
11 | else{
12 | printf("The year is not a leap year");
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/P-23.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a person is eligible to vote or not.
2 | #include
3 | int main()
4 | {
5 | int age,b;
6 | printf("Enter birth year:\n");
7 | scanf("%d",&age);
8 | b=2023-age;
9 | if(b==18)
10 | printf("The person is eligible to vote");
11 | else
12 | printf("The person is not eligible to vote");
13 | }
--------------------------------------------------------------------------------
/P-24.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to calculate the grade of the student according to specific marks:
2 | //95 to 100:AA
3 | //85 to 95:A+
4 | //70 to 85:A
5 | //60 to 70:B
6 | //45 to 60:C
7 | //<45:D
8 | //#include
9 | //int main()
10 | //{
11 | //int marks;
12 | //printf("Enter Marks:\n");
13 | //scanf("%d",&marks);
14 | //if((marks>100)||(marks<0)
15 | //printf("WRONG ENTRY TRY AGAIN");
16 | //else if((marks<=100)&&(marks>=95))
17 | //printf("Grade is:AA");
18 | //else if((marks<95)&&(marks>=85))
19 | //printf("Grade is:A+");
20 | //else if((marks<85)&&(marks>=70))
21 | //printf("Grade is:A");
22 | //else if((marks<70)&&(marks>=60))
23 | //printf("Grade is:B");
24 | //else if((marks<60)&&(marks>=45))
25 | //printf("Grade is:C");
26 | //else
27 | //printf("Grade is:D");
28 | //}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/P-25.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to solve all the algebraic identities.
2 | #include
3 | int main()
4 | {
5 | float a,b,c;
6 | printf("Enter the values of A,B and C:\n");
7 | scanf("%f%f%f",&a,&b,&c);
8 | float s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13;
9 | s1=(a*a)+(2*a*b)+(b*b);
10 | s2=(a*a)-(2*a*b)+(b*b);
11 | s3=(a+b)*(a-b);
12 | s4=(a*a)+(b*b)+(c*c)+(2*a*b)+(2*b*c)+(2*c*a);
13 | s5=(a*a)+(b*b)+(c*c)+(2*a*b)-(2*b*c)-(2*c*a);
14 | s6=(a*a)+(b*b)+(c*c)-(2*a*b)-(2*b*c)+(2*c*a);
15 | s7=(a*a)+(b*b)+(c*c)-(2*a*b)+(2*b*c)-(2*c*a);
16 | s8=(a*a)+(b*b)+(c*c)-(2*a*b)+(2*b*c)-(2*c*a);
17 | s9=(a*a*a)+(b*b*b)+((3*a*b)+(a+b));
18 | s10=(a*a*a)-(b*b*b)-((3*a*b)+(a-b));
19 | s11=(a+b)*((a*a)-(a*b)+(b*b));
20 | s12=(a-b)*((a*a)+(a*b)+(b*b));
21 | s13=(a*a*a)+(b*b*b)+(c*c*c)-(3*a*b*c);
22 | printf("S_1=%f\n",s1);
23 | printf("S_2=%f\n",s2);
24 | printf("S_3=%f\n",s3);
25 | printf("S_4=%f\n",s4);
26 | printf("S_5=%f\n",s5);
27 | printf("S_6=%f\n",s6);
28 | printf("S_7=%f\n",s7);
29 | printf("S_8=%f\n",s8);
30 | printf("S_9=%f\n",s9);
31 | printf("S_10=%f\n",s10);
32 | printf("S_11=%f\n",s11);
33 | printf("S_12=%f\n",s12);
34 | printf("S_13=%f\n",s13);
35 | }
36 |
37 |
--------------------------------------------------------------------------------
/P-26.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to calculate the area of regular hexagon.
2 | #include
3 | int main()
4 | {
5 | float a,b,area;
6 | printf("Enter the values of side:\n");
7 | scanf("%f",&a);
8 | b=(3*1.732)/2;
9 | area=b*(a*a);
10 | printf("Area of hexagon is:%f\n",area);
11 | }
--------------------------------------------------------------------------------
/P-27.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to input 5 subject from class 12 and calculate the average of the grades,
2 | #include
3 | int main()
4 | {
5 | int m,s,sst,b,e,a,avg;
6 | printf("Enter Maths Marks:\n");
7 | scanf("%d",&m);
8 | printf("Enter Science Marks:\n");
9 | scanf("%d",&m);
10 | printf("Enter Maths Marks:\n");
11 | scanf("%d",&s);
12 | printf("Enter Social Studies Marks:\n");
13 | scanf("%d",&sst);
14 | printf("Enter Bengali Marks:\n");
15 | scanf("%d",&b);
16 | printf("Enter English Marks:\n");
17 | scanf("%d",&e);
18 | a=m+s+sst+b+e;
19 | avg=a/5;
20 | printf("Average of all the marks is:%d\n",avg);
21 | }
--------------------------------------------------------------------------------
/P-28.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to demonstrate the shift right and shift left operator.
2 | #include
3 | int main()
4 | {
5 | int a=10;
6 | printf("%d\n",a>>1);
7 | printf("%d\n",a<<1);
8 | }
9 |
10 |
--------------------------------------------------------------------------------
/P-29.c:
--------------------------------------------------------------------------------
1 | //Write a program in to print the size of a data type in floating point.
2 | #include
3 | int main()
4 | {
5 | int a=10;
6 | printf("%f",(float)sizeof(a));
7 | }
--------------------------------------------------------------------------------
/P-30.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to demonstrate all the types of error part 1.
2 | #include
3 | void main()//Linker Error.Expected line is int main()
4 | {
5 | int a,b,c;
6 | printf("%d"a);//Syntax Error.Expected line is printf("%d",a);
7 | a*b=c;//Semantic Error.Expected line is c=a*b;
8 | }
--------------------------------------------------------------------------------
/P-31.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to demonstrate all the types of error part 2.
2 | #include
3 | int main()
4 | {
5 | int a=20;
6 | int b,c,d;
7 | printf("Enter b\n");
8 | scanf("%d",&b);
9 | c=a/b;//Runtime Error.An user can give any value for b such as 0 which is not possible.
10 | d=a+b*a;//Logical Error.Expected answer is 10 but we get logical error which gives the answer as 8.
11 | }
12 |
--------------------------------------------------------------------------------
/P-32.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether the character entered by the user is a vowel or not.
2 | #include
3 | int main()
4 | {
5 | char ch;
6 | int lc,uc;
7 | printf("Enter a Character:\n");
8 | scanf("%c",&ch);
9 | lc=(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u');
10 | uc=(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U');
11 | if(lc||uc)
12 | printf("The character entered is a vowel");
13 | else
14 | printf("The character entered is a consonant");
15 | }
16 |
--------------------------------------------------------------------------------
/P-33.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check if the character entered by the user is an upper case character or lower case character.
2 | #include
3 | int main()
4 | {
5 | char ch;
6 | int lc,uc;
7 | printf("Enter a Character:\n");
8 | scanf("%c",&ch);
9 | if(ch>='A'&&ch<='Z')
10 | printf("The character entered is in uppercase");
11 | else
12 | printf("The character entered is in lowercase");
13 | }
14 |
--------------------------------------------------------------------------------
/P-34.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to take the values of 2 sides.If both the sides are same,calculate the area of square else calculate the area of rectangle.
2 | #include
3 | int main()
4 | {
5 | int a,b,area;
6 | printf("Enter the value of Both the sides:\n");
7 | scanf("%d%d",&a,&b);
8 | if(a==b)
9 | {
10 | area=a*b;
11 | printf("Area of Square is:%d\n",area);
12 | }
13 | else
14 | {
15 | area=a*b;
16 | printf("Area of Rectangle is:%d\n",area);
17 | }
18 | }
--------------------------------------------------------------------------------
/P-35.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether the temperature of water can reach boiling point.
2 | #include
3 | int main()
4 | {
5 | float temp;
6 | printf("Enter the temperature of water:\n");
7 | scanf("%f",&temp);
8 | if(temp>=100)
9 | printf("The water has reached boiling point.");
10 | else
11 | printf("The water has not reached boiling point.");
12 | }
--------------------------------------------------------------------------------
/P-36.c:
--------------------------------------------------------------------------------
1 | //Write a program in c by taking four numbers and find the largest number using and operator.
2 | #include
3 | int main()
4 | {
5 | int a,b,c,d;
6 | printf("Enter the numbers:\n");
7 | scanf("%d%d%d%d",&a,&b,&c,&d);
8 | if((a>b)&&(a>c)&&(a>d))
9 | printf("The largest number is:%d",a);
10 | if((b>a)&&(b>c)&&(b>d))
11 | printf("The largest number is:%d",b);
12 | if((c>a)&&(c>b)&&(c>d))
13 | printf("The largest number is:%d",c);
14 | if((d>a)&&(d>b)&&(d>c))
15 | printf("The largest number is:%d",d);
16 | }
--------------------------------------------------------------------------------
/P-37.c:
--------------------------------------------------------------------------------
1 | //Write a c program by taking four numbers and find the smallest number using and operator.
2 | #include
3 | int main()
4 | {
5 | int a,b,c,d;
6 | printf("Enter the numbers:\n");
7 | scanf("%d%d%d%d",&a,&b,&c,&d);
8 | if((a
3 | int main()
4 | {
5 | int n,s;
6 | printf("Enter the value of n:");
7 | scanf("%d",&n);
8 | s=n*(n+1)/2;
9 | printf("The required sum is:%d",s);
10 | }
--------------------------------------------------------------------------------
/P-39.c:
--------------------------------------------------------------------------------
1 | //Write a c program to calculate the discount amount by taking the price of the product as a input from the user if the discount is greater than 10% but less than 50%,18% GST is to be added to the total bill and if it is more than 50% but less than 100%,2% GST will be applied.
2 | #include
3 | int main()
4 | {
5 | float amt,dis;
6 | printf("Enter amount:");
7 | scanf(%f",&amt);
8 | printf("Enter discount:");
9 | scanf("%f",&dis);
10 | if(dis>=10&&dis<=50)
11 | {
12 | float bill=(amt*(dis/100))+(18/100);
13 | printf("Bill=%f",bill);
14 | }
15 | else if(dis>50&&dis<=100)
16 | {
17 | float bill=(amt*(dis/100))+(2/100);
18 | printf("Bill=%f",bill);
19 | }
20 | else
21 | printf("ERROR!");
22 | }
--------------------------------------------------------------------------------
/P-40.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether character is vowel or not in switch case.
2 | #include
3 | int main()
4 | {
5 | char a;
6 | printf("Enter character:");
7 | scanf("%c",&a);
8 | switch(a)
9 | {
10 | case 'a':
11 | printf("It is A");
12 | break;
13 | case 'e':
14 | printf("It is E");
15 | break;
16 | case 'i':
17 | printf("It is I");
18 | break;
19 | case 'o':
20 | printf("It is O");
21 | break;
22 | case 'u':
23 | printf("It is U");
24 | break;
25 | default:
26 | printf("It is a Consonant");
27 | }
28 | }
--------------------------------------------------------------------------------
/P-41.c:
--------------------------------------------------------------------------------
1 | //Write a c program to display the day of week by taking the week number from the user.
2 | #include
3 | int main()
4 | {
5 | int ch;
6 | printf("Enter the day number:");
7 | scanf("%d",&ch);
8 | switch(ch)
9 | {
10 | case 1:
11 | printf("It is Monday");
12 | break;
13 | case 2:
14 | printf("It is Tuesday");
15 | break;
16 | case 3:
17 | printf("It is Wednesday");
18 | break;
19 | case 4:
20 | printf("It is Thursday");
21 | break;
22 | case 5:
23 | printf("It is Friday");
24 | break;
25 | case 6:
26 | printf("It is Saturday");
27 | break;
28 | case 7:
29 | printf("It is Sunday");
30 | break;
31 | default:
32 | printf("WRONG CHOICE!");
33 | }
34 | }
--------------------------------------------------------------------------------
/P-42.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to take any keyboard input from the user to determine its data type.
2 | #include
3 | #include
4 | int main() {
5 | char a;
6 | int p,q,r,s;
7 | printf("Enter a character:");
8 | scanf("%c",&a);
9 | p=isdigit(a);
10 | q=isalpha(a);
11 | r=ispunct(a);
12 | s=isspace(a);
13 | if(p==1){
14 | printf("The character %c entered is a digit",a);
15 | }
16 | else if(q==1){
17 | printf("The character %c entered is a alphabet ",a);
18 | }
19 | else if(r==1){
20 | printf("The character %c entered is a punctuation character ",a);
21 | }
22 | else if(s==1)
23 | {
24 | printf("The character %c entered is space ",a);
25 | }
26 | else
27 | {
28 | printf("WRONG CHOICE!");
29 | }
30 | }
--------------------------------------------------------------------------------
/P-43.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a number is prime or composite.
2 | #include
3 | int main()
4 | {
5 | int n,m,a=0;
6 | printf("Enter a number:");
7 | scanf("%d",&n);
8 | m=n/2;
9 | for(int i=2;i<=m;i++)
10 | {
11 | if(n%i==0)
12 | {
13 | printf("%d is not a prime number",n);
14 | a=1;
15 | break;
16 | }
17 | }
18 | if(a==0)
19 | {
20 | printf("%d is a prime number",n);
21 | }
22 | }
23 |
24 |
--------------------------------------------------------------------------------
/P-44.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to find the factorial of n.
2 | #include
3 | int main()
4 | {
5 | int a=1,n;
6 | printf("Enter a number:");
7 | scanf("%d",&n);
8 | while(n>0)
9 | {
10 | a*=n;
11 | n--;
12 | }
13 | printf("The factorial of the number %d is:%d",n,a);
14 | }
15 |
--------------------------------------------------------------------------------
/P-45.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to print the multiplication table of n.
2 | #include
3 | int main()
4 | {
5 | int n;
6 | printf("Enter the range:");
7 | scanf("%d",&n);
8 | for(int i=1;i<=n;i++)
9 | {
10 | for(int j=1;j<=10;j++)
11 | {
12 | printf("%d * %d=%d\n",i,j,i*j);
13 | }
14 | printf("--------------------\n");
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/P-46.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to print the palindrome pyramid
2 | #include
3 | int main()
4 | {
5 | int i, j, a=0;
6 | for(i=1;i<=4;i++)
7 | {
8 | for(j=i;j<4;j++)
9 | {
10 | printf (" ");
11 | }
12 | for(j=1;j<=i;j++)
13 | {
14 | ++a;
15 | printf("%d",a);
16 | }
17 | a--;
18 | for(j=1;j
3 | int main()
4 | {
5 | int row,temp1=1,temp2=1,backup=0;
6 | printf("Limit:\n");
7 | scanf("%d",&row);
8 | for(int i=0;i<=row;i++)
9 | {
10 | for(int j=0;j
8 | int main()
9 | {
10 | for(int i=0;i<=5;i++)
11 | {
12 | for(int j=0;j
12 | int main()
13 | {
14 | int row=5;
15 | for(int i=0;i<2*row-1;i++)
16 | {
17 | int a;
18 | if(i
8 | int main()
9 | {
10 | int row=5;
11 | for(int i=0;i
3 | int main()
4 | {
5 | int n;
6 | scanf("%d",&n);
7 | l1:
8 | if(n!=-1) {
9 | printf("Hello World");
10 | goto l1;
11 | }
12 | else
13 | printf("Stop!");
14 | }
15 |
--------------------------------------------------------------------------------
/P-52.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to print diamond shaped pattern
2 | #include
3 | int main()
4 | {
5 | int i,j,r;
6 | printf("Input number of rows:");
7 | scanf("%d",&r);
8 | for(i=0;i<=r;i++)
9 | {
10 | for(j=1;j<=r-i;j++)
11 | printf(" ");
12 | for(j=1;j<=2*i-1;j++)
13 | printf("*");
14 | printf("\n");
15 | }
16 | for(i=r-1;i>=1;i--)
17 | {
18 | for(j=1;j<=r-i;j++)
19 | printf(" ");
20 | for(j=1;j<=2*i-1;j++)
21 | printf("*");
22 | printf("\n");
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/P-53.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a number is palindrome or not.
2 | #include
3 | int main()
4 | {
5 | int n, reversed = 0, remainder, original;
6 | printf("Enter an integer: ");
7 | scanf("%d", &n);
8 | original = n;
9 | while (n != 0)
10 | {
11 | remainder = n % 10;
12 | reversed = reversed * 10 + remainder;
13 | n /= 10;
14 | }
15 | if (original == reversed)
16 | printf("%d is a palindrome.", original);
17 | else
18 | printf("%d is not a palindrome.", original);
19 | }
20 |
--------------------------------------------------------------------------------
/P-54.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to count the number of digits in a number.
2 | #include
3 | int main()
4 | {
5 | int n;
6 | int count = 0;
7 | printf("Enter an integer: ");
8 | scanf("%d", &n);
9 | do
10 | {
11 | n /= 10;
12 | ++count;
13 | }
14 | while (n != 0);
15 | printf("Number of digits: %d", count);
16 | }
17 |
--------------------------------------------------------------------------------
/P-55.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to find the HCF of 2 numbers
2 | #include
3 | int main()
4 | {
5 | int a,b,hcf=1;
6 | printf("Enter A and B:");
7 | scanf("%d%d",&a,&b);
8 | for(int i = 1; i <=a || i <= b; i++)
9 | {
10 | if(a % i == 0 && b % i == 0)
11 | hcf = i;
12 | }
13 | printf("The HCF: %d", hcf);
14 | }
--------------------------------------------------------------------------------
/P-56.c:
--------------------------------------------------------------------------------
1 | //Write a c program to check whether 2 numbers are amicable or not.
2 | #include
3 | int main()
4 | {
5 | int n1,n2,DivSum1=0,DivSum2=0;
6 | printf("Enter the numbers:");
7 | scanf("%d%d",&n1,&n2);
8 | for(int i=1;i
3 | int main()
4 | {
5 | int d,b= 0,i = 1,remainder;
6 | printf("Enter a decimal number: ");
7 | scanf("%d", &d);
8 | while (d != 0)
9 | {
10 | remainder = d % 2;
11 | d/= 2;
12 | b+= remainder * i;
13 | i*= 10;
14 | }
15 | printf("Binary number: %d\n",b);
16 | }
--------------------------------------------------------------------------------
/P-58.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check if the number is an armstrong number by using functions.
2 | #include
3 | void armstrong(int n)
4 | {
5 | int originalNum=n,remainder,result=0;;
6 | while (originalNum != 0)
7 | {
8 | remainder = originalNum % 10;
9 | result += remainder * remainder * remainder;
10 | originalNum /= 10;
11 | }
12 | if (result == n)
13 | printf("%d is an Armstrong number.", n);
14 | else
15 | printf("%d is not an Armstrong number.", n);
16 | }
17 | int main()
18 | {
19 | int num;
20 | printf("Enter a three-digit integer: ");
21 | scanf("%d", &num);
22 | armstrong(num);
23 | }
--------------------------------------------------------------------------------
/P-59.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check whether a number is friendly number or not.
2 | #include
3 | int friendly(int num)
4 | {
5 | int sum = 0;
6 | for(int i = 1; i < num; i++)
7 | {
8 | if(num % i == 0)
9 | sum = sum + i;
10 | }
11 | return sum;
12 | }
13 | int main ()
14 | {
15 | int num1,num2;
16 | printf("Enter First Number:");
17 | scanf("%d",&num1);
18 | printf("Enter Second Number:");
19 | scanf("%d",&num2);
20 | int sum1 = friendly(num1);
21 | int sum2 = friendly(num2);
22 | if(sum1/num1 == sum2/num2)
23 | printf("%d and %d are friendly pairs", num1, num2);
24 | else
25 | printf("%d and%d are not friendly pairs", num1, num2);
26 | }
--------------------------------------------------------------------------------
/P-60.c:
--------------------------------------------------------------------------------
1 | //Write a c program to check whether a number is happy number or not.
2 | #include
3 | #include
4 | main()
5 | {
6 | int i,j,num,temp,sum=0;
7 | printf("Enter number\n");
8 | scanf("%d",&num);
9 | while(sum!=1 && sum!=4)
10 | {
11 | sum=0;
12 | while(num>0)
13 | {
14 | j=num%10;
15 | sum+=(j*j);
16 | num=num/10;
17 | }
18 | num=sum;
19 | }
20 | if(sum==1)
21 | printf("Happy Number\n");
22 | else
23 | printf("UnHappy Number\n");
24 | }
--------------------------------------------------------------------------------
/P-61.c:
--------------------------------------------------------------------------------
1 | //Write a c program to calculate the logarithm value of a numerical constant by taking the value as an input from the user.
2 | #include
3 | #include
4 | int main()
5 | {
6 | double n,result;
7 | printf("Enter Number:");
8 | scanf("%lf",&n);
9 | result = log(n);
10 | printf("The Logarithm of %.2lf is %lf\n",n, result);
11 | }
--------------------------------------------------------------------------------
/P-62.c:
--------------------------------------------------------------------------------
1 | //Write a c program by using the numerical-1,9,9 and 6 exactly in the order to make the following numericals:- 28,32,35,38,72,73,76,77,100,1000.
2 | #include
3 | #include
4 | int main()
5 | {
6 | int a=1+9,b=9-6;
7 | int s1=1+9+(sqrt(9)*6);
8 | int s2=(1/(sqrt(9)))*96;
9 | int s3=(-19)+(9*6);
10 | int s4=19/((sqrt(9))/6);
11 | int s5=(1+sqrt(9))*sqrt(9)*6;
12 | int s6=19+(9*6);
13 | int s7=1+pow(9,2)-6;
14 | int s8=-19+96;
15 | int s9=1+sqrt(9)+96;
16 | int s10=pow(a,b);
17 | printf("Numericals:\n");
18 | printf("%d,%d,%d,%d,%d,%d,%d,%d,%d,%d",s1,s2,s3,s4,s5,s6,s7,s8,s9,s10);
19 | }
--------------------------------------------------------------------------------
/P-63.c:
--------------------------------------------------------------------------------
1 | //Write a c program to check whether a number is unique number or not.
2 | #include
3 | int main()
4 | {
5 | int n, num,r, k = 0, count = 1;
6 | int arr[100];
7 | printf("Enter a number:");
8 | scanf("%d", &n);
9 | num = n;
10 | while (n > 0)
11 | {
12 | r = n % 10;
13 | arr[k] = r;
14 | n = n / 10;
15 | k++;
16 | }
17 | for (int i = 0; i < k; i++)
18 | {
19 | for (int j = i + 1; j < k; j++)
20 | {
21 | if (arr[i] == arr[j])
22 | {
23 | count = 0;
24 | }
25 | }
26 | }
27 | if (count == 1)
28 | {
29 | printf("%d is unique.", num);
30 | }
31 | else
32 | {
33 | printf("%d is not unique.", num);
34 | }
35 | }
--------------------------------------------------------------------------------
/P-64.c:
--------------------------------------------------------------------------------
1 | //Write a c program to find the sum of n numbers using recurssion.
2 | #include
3 | int sum(int a)
4 | {
5 | int x;
6 | if(a==1)
7 | {
8 | return 1;
9 | }
10 | return x=a+sum(a-1);
11 | }
12 | int main()
13 | {
14 | int n,c;
15 | printf("Enter The Range 0f N Number=");
16 | scanf("%d",&n);
17 | c=sum(n);
18 | printf("%d",c);
19 | }
--------------------------------------------------------------------------------
/P-65.c:
--------------------------------------------------------------------------------
1 | //Write a c program to find the area of circle using recursive function by taking radius as user input. If r=0, the program should stop.
2 | #include
3 | void area(int r)
4 | {
5 | int m;
6 | if(r==0)
7 | {
8 | printf("STOP!");
9 | }
10 | else
11 | {
12 | printf("Area Is = %f\n",3.14*r*r);
13 | printf("Enter New Radius:\n");
14 | scanf("%d",&m);
15 | area(m);
16 | }
17 | }
18 | int main()
19 | {
20 | int radius;
21 | printf("Enter The Radius:\n");
22 | scanf("%d",&radius);
23 | area(radius);
24 | return 0;
25 | }
--------------------------------------------------------------------------------
/P-66.c:
--------------------------------------------------------------------------------
1 | //Write a c program to demonstrate tree recursion.
2 | #include
3 | void Tree(int n)
4 | {
5 | if (n > 0)
6 | {
7 | printf("%d\t", n);
8 | Tree(n - 1);
9 | Tree(n - 1);
10 | }
11 | }
12 | int main()
13 | {
14 | int n = 3;
15 | Tree(n);
16 | }
--------------------------------------------------------------------------------
/P-67.c:
--------------------------------------------------------------------------------
1 | //Write a c program to create 1 dimensional array by taking size and elements from user and display it.
2 | #include
3 | int main()
4 | {
5 | int size;
6 | printf("Enter the size of the array:");
7 | scanf("%d",&size);
8 | int num[size];
9 | for(int i=0;i
3 | int main()
4 | {
5 | int rows=0,cols=0;
6 | printf("Enter the rows and the columns of the array:");
7 | scanf("%d%d",&rows,&cols);
8 | int num[rows][cols];
9 | for(int i=0;i
3 | int main()
4 | {
5 | int size,j;
6 | printf("Enter the size of the array:");
7 | scanf("%d",&size);
8 | int num[size];
9 | for(int i=0;i
3 | int main()
4 | {
5 | int r,c;
6 | int a[100][100];
7 | int b[100][100];
8 | int sum[100][100];
9 | printf("Enter the number of rows: ");
10 | scanf("%d", &r);
11 | printf("Enter the number of columns: ");
12 | scanf("%d", &c);
13 | printf("Enter elements of 1st matrix:\n");
14 | for (int i = 0; i < r;i++)
15 | {
16 | for (int j = 0; j < c;j++)
17 | {
18 | printf("Enter element a%d%d: ", i,j);
19 | scanf("%d", &a[i][j]);
20 | }
21 | printf("Enter elements of 2nd matrix:\n");
22 | for (int i = 0; i < r;i++)
23 | {
24 | for (int j = 0; j < c;j++)
25 | {
26 | printf("Enter element b%d%d: ", i, j);
27 | scanf("%d", &b[i][j]);
28 | }
29 | for (int i = 0; i < r; ++i)
30 | {
31 | for (int j = 0; j < c; ++j)
32 | {
33 | sum[i][j] = a[i][j] + b[i][j];
34 | }
35 | printf("Sum of two array: \n");
36 | for (int i = 0; i < r; ++i)
37 | {
38 | for (int j = 0; j < c; ++j)
39 | {
40 | printf("%d ", sum[i][j]);
41 | if (j == c - 1)
42 | {
43 | printf("\n");
44 | }
45 | }
46 | }
--------------------------------------------------------------------------------
/P-71.c:
--------------------------------------------------------------------------------
1 | //Write a c program to multiply two 2-D array.
2 | #include
3 | int main()
4 | {
5 | int r,c;
6 | int matrix1[100][100];
7 | int matrix2[100][100];
8 | int result[100][100];
9 | int i, j, k;
10 | printf("Enter the number of rows: ");
11 | scanf("%d", &r);
12 | printf("Enter the number of columns: ");
13 | scanf("%d", &c);
14 | printf("Enter elements of the first matrix:\n");
15 | for (i = 0; i < r; i++)
16 | {
17 | for (j = 0; j < c; j++)
18 | {
19 | printf("Enter the element in row-%d and column-%d :",i,j);
20 | scanf("%d", &matrix1[i][j]);
21 | }
22 | }
23 | printf("Enter elements of the second 2x2 matrix:\n");
24 | for (i = 0; i < r; i++)
25 | {
26 | for (j = 0; j < c; j++)
27 | {
28 | printf("Enter the element in row-%d and column-%d :",i,j);
29 | scanf("%d", &matrix2[i][j]);
30 | }
31 | }
32 | for (i = 0; i < r; i++)
33 | {
34 | for (j = 0; j < c; j++)
35 | {
36 | result[i][j] = 0;
37 | for (k = 0; k < 2; k++)
38 | {
39 | result[i][j] += matrix1[i][k] * matrix2[k][j];
40 | }
41 | }
42 | }
43 | printf("Result of matrix multiplication:\n");
44 | for (i = 0; i < r; i++)
45 | {
46 | for (j = 0; j < c; j++)
47 | {
48 | printf("%d ", result[i][j]);
49 | }
50 | printf("\n");
51 | }
52 | }
--------------------------------------------------------------------------------
/P-72.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to manually calculate the length of a string.
2 | #include
3 | int main()
4 | {
5 | char str[100];
6 | int length=0;
7 | printf("Enter a string: \n");
8 | scanf("%s",str);
9 | for(int i=0; str[i]!='\0'; i++)
10 | {
11 | length++;
12 | }
13 | printf("Length of input string: %d",length);
14 | }
--------------------------------------------------------------------------------
/P-73.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to concantinate four stings together using string function.
2 | #include
3 | #include
4 | int main()
5 | {
6 | char str1[50],str2[50],str3[50],str4[50];
7 | printf("Enter the strings: \n");
8 | scanf("%s%s%s%s",&str1,&str2,&str3,&str4);
9 | strcat(str1,str2);
10 | strcat(str3,str4);
11 | strcat(str1,str3);
12 | printf("%s",str1);
13 | }
--------------------------------------------------------------------------------
/P-74.c:
--------------------------------------------------------------------------------
1 | //Write a c program to implement all string functions.
2 | #include
3 | #include
4 | int main()
5 | {
6 | char str1[50],str2[50],str3[50],str4[50];
7 | printf("Enter string 1 : \n");
8 | gets(str1);
9 | printf("Enter string 2 : \n");
10 | gets(str2);
11 | printf("Full Length of string 1 >> %d\n",strlen(str1));
12 | printf("Length of string 2 upto 10 >> %d\n ",strnlen(str2,7));
13 | strcpy(str3,str1);
14 | strcat(str1,str2);
15 | printf("Full concatanation of string 1 and 2 >> %s \n",str1);
16 | strcpy(str1,str3);
17 | strncat(str1,str2,5);
18 | strcpy(str1,str3);
19 | printf("concatanation of string 1 and 2 upto 5 charecters >> %s \n",str3);
20 | printf("comparing string 1 with 2 >> %d \n",strcmp(str1,str3));
21 | printf("comparing first 3 charecters of string 1 and 2 >> %d \n",strncmp(str1,str2,3));
22 | strcpy(str4,str1);
23 | printf("copying the string one to another variable >> %s\n",str4);
24 | strncpy(str4,str2,4);
25 | printf("copying the first 4 charecters of string one to another variable >> %s\n",str4);
26 | char *ch;
27 | printf("Enter a character:");
28 | scanf("%c",&(*ch));
29 | printf("The charecter %c first occurs in index :%d in string 1",*ch,strchr(str1,*ch));
30 | printf("The charecter %c last occurs in index :%d in string 1",ch,strrchr(str1,*ch));
31 | printf("Enter a substring:");
32 | gets(str4);
33 | strstr(str2,str4);
34 | printf("searching substring in string 1 >> ");
35 | strnstr(str4,str4,5);
36 | printf("searching substring in string 1 upto 5 charecters >>");
37 | printf("Comparing string 1 with 2 ignoring case >> %d",strcasecmp(str1,str2));
38 | printf("Comparing string 1 with 2 upto 5 charecters ignoring case >> %d",strncasecmp(str1,str2,5));
39 |
40 | }
--------------------------------------------------------------------------------
/P-75.c:
--------------------------------------------------------------------------------
1 | //Write a c program to add 2 complex numbers using structures.
2 | #include
3 | int main()
4 | {
5 | struct complex
6 | {
7 | int real;
8 | int imaginary;
9 | }c1,c2,c3;
10 | c1.real=10,c1.imaginary=20;
11 | c2.real=15,c2.imaginary=30;
12 | c3.real=c1.real+c2.real;
13 | c3.imaginary=c1.imaginary+c2.imaginary;
14 | printf("The Complex Number is: %d+%di",c3.real,c3.imaginary);
15 | }
--------------------------------------------------------------------------------
/P-76.c:
--------------------------------------------------------------------------------
1 | //Write a c program to demonstrate array of structures
2 | #include
3 | int main()
4 | {
5 | struct employee
6 | {
7 | char name[100];
8 | int age;
9 | float salary;
10 | };
11 | struct employee em[10];
12 | int counter, index, count, totalSalary;
13 | printf("Enter Number of Employees\n");
14 | scanf("%d", &count);
15 | for(counter=0; counter
3 | int main()
4 | {
5 | int ch,count=0;
6 | char n[15];
7 | long int d;
8 | struct product
9 | {
10 | char name[15];
11 | long int id;
12 | float price;
13 | };
14 | struct product c[5]={"Tea",213421,50,"Coffee",715423,100,"Cadburry",213224,20,"Coke",215621,50,"Face Wash",657421,200};
15 | printf("Enter the mode of search:\n");
16 | printf("1. Name.\n");
17 | printf("2. ID.\n");
18 | scanf("%d",&ch);
19 | switch(ch)
20 | {
21 | case 1:
22 | puts("Enter the name of the product:\n");
23 | getchar();
24 | gets(n);
25 | for(int i=0;i<5;i++)
26 | {
27 | if((strcasecmp(c[i].name,n)==0))
28 | {
29 | printf("Name:%s\n",c[i].name);
30 | printf("ID:%ld\n",c[i].id);
31 | printf("Price:%f",c[i].price);
32 | count++;
33 | break;
34 | }
35 | }
36 | if(count==0)
37 | {
38 | printf("WRONG CHOICE!");
39 | }
40 | break;
41 | case 2:
42 | printf("Enter the ID of the product:\n");
43 | scanf("%ld",&d);
44 | for(int i=0;i<5;i++)
45 | {
46 | if(c[i].id==d)
47 | {
48 | printf("Name:%s\n",c[i].name);
49 | printf("ID:%ld\n",c[i].id);
50 | printf("Price:%f",c[i].price);
51 | count++;
52 | break;
53 | }
54 | }
55 | if(count==0)
56 | {
57 | printf("WRONG CHOICE!");
58 | }
59 | break;
60 | }
61 | }
--------------------------------------------------------------------------------
/P-78.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to demonstrate bubble sorting.
2 | #include
3 | int main()
4 | {
5 | int arr[]={20,2,30,50,40,60,80,80,9};
6 | int start=0;
7 | int stop=9;
8 | for(int i=0;iarr[j+1])
13 | {
14 | int temp=arr[j];
15 | arr[j]=arr[j+1];
16 | arr[j+1]=temp;
17 | }
18 | }
19 | }
20 | for(int i=0;i
3 | int main()
4 | {
5 | int ch,rev;
6 | union test {
7 | long int ph; //for phone number
8 | char email[50]; //for email id
9 | }data;
10 | printf("Enter :\n1. To enter phone number\n2. To enter email address \n");
11 | scanf("%d",&ch);
12 | if (ch==1)
13 | {
14 | printf("\nEnter phone number >> ");
15 | scanf("%ld",&data.ph);
16 | printf("\nDetails saved successfully !!!");
17 | }
18 | else if(ch==2)
19 | {
20 | printf("\nEnter email address >>");
21 | scanf("%s",&data.email);
22 | printf("\nDetails saved successfully !!!");
23 | }
24 | else
25 | printf("WRONG CHOICE !!!");
26 | printf("\nEnter 0 to view saved details , any other number to exit >> ");
27 | scanf("%d",&rev);
28 | if(rev==0) {
29 | if (ch == 1)
30 | printf("Entered phone number is %ld", data.ph);
31 | else if (ch == 2)
32 | printf("Entered email address is %s", data.email);
33 | }
34 | }
--------------------------------------------------------------------------------
/P-80.c:
--------------------------------------------------------------------------------
1 | //write a program in C to create a union inside a structure
2 | #include
3 | int main()
4 | {
5 | int rev,n,i;
6 | printf("Enter number of students >> ");
7 | scanf("%d",&n);
8 | struct cprog{
9 | char name[45];
10 | int ch;
11 | union {
12 | long int ph; //for phone number
13 | char email[50]; //for email id
14 | };
15 | }stu[n];
16 |
17 | for(i=0;i> ",i+1);
19 | getchar();
20 | gets(stu[i].name);
21 | l1:
22 | printf("Enter :\n1. To enter phone number\n2. To enter email address \n");
23 | scanf("%d", &stu[i].ch);
24 | if (stu[i].ch == 1) {
25 | printf("\nEnter phone number >> ");
26 | scanf("%ld", &stu[i].ph);
27 | printf("\nDetails saved successfully !!!");
28 | } else if (stu[i].ch == 2) {
29 | printf("\nEnter email address >>");
30 | scanf("%s", &stu[i].email);
31 | printf("\nDetails saved successfully !!!");
32 | }else {
33 | printf("WRONG CHOICE !!! Please try again !");
34 | goto l1;
35 | }
36 | }
37 | printf("\nEnter 0 to view saved details , any other number to exit >> ");
38 | scanf("%d",&rev);
39 |
40 | if(rev==0) {
41 | for(i = 0;i < n;i++){
42 | printf("\nStudent %d name >> %s", i + 1, stu[i].name);
43 | if (stu[i].ch == 1)
44 | printf("\nLinked phone number is %ld", stu[i].ph);
45 | else if (stu[i].ch == 2)
46 | printf("\nLinked email address is %s", stu[i].email);
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/P-81.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to check if a file exists or not.
2 | #include
3 | int main()
4 | {
5 | FILE *fp;
6 | fp= fopen("sample.txt","r");
7 | if(fp!=NULL)
8 | {
9 | printf("FILE OPENED!");
10 | }
11 | else
12 | {
13 | printf("FILE NOT FOUND!");
14 | }
15 | }
--------------------------------------------------------------------------------
/P-82.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to read data from a file and display.
2 | #include
3 | int main()
4 | {
5 | FILE *fp;
6 | char data[100];
7 | fp= fopen("sample.txt","r");
8 | if(fp!=NULL)
9 | {
10 | printf("FILE OPENED!");
11 | fgets(data,100,fp);
12 | printf("%s",data);
13 | }
14 | else
15 | {
16 | printf("ERROR!");
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/P-83.c:
--------------------------------------------------------------------------------
1 | //Write a c program to perform modify the data in a file by taking user input.
2 | #include
3 |
4 | int main()
5 | {
6 | char file_name[100],user_data[100];
7 | printf("Enter file name:\n");
8 | gets(file_name);
9 | FILE *fp;
10 | fp=fopen(file_name,"w");
11 | if(fp!=NULL)
12 | {
13 | printf("FILE FOUND!\n");
14 | printf("Enter something to be saved in file:\n");
15 | gets(user_data);
16 | fprintf(fp,"%s",user_data);
17 | printf("Data saved in file");
18 | fclose(fp);
19 | }
20 | else
21 | {
22 | printf("FILE NOT FOUND!");
23 | }
24 | }
--------------------------------------------------------------------------------
/P-84.c:
--------------------------------------------------------------------------------
1 | //Write a c program to perform append operation in a file.
2 | #include
3 |
4 | int main()
5 | {
6 | char file_name[100],user_data[100];
7 | printf("Enter file name:\n");
8 | gets(file_name);
9 | FILE *fp;
10 | fp=fopen(file_name,"a");
11 | if(fp!=NULL)
12 | {
13 | printf("FILE FOUND!");
14 | printf("Enter something to be saved in file:\n");
15 | gets(user_data);
16 | fprintf(fp,"%s",user_data);
17 | printf("Data saved in file");
18 | fclose(fp);
19 | }
20 | else
21 | {
22 | printf("FILE NOT FOUND!");
23 | }
24 | }
--------------------------------------------------------------------------------
/P-85.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to implement macros and solve an arithmetical operation through it.
2 | #include
3 | #define d(x) (x*x*x)
4 | #define e(x,y) (x+y-x*x-y+x*x)
5 |
6 | int main()
7 | {
8 | int a = 5;
9 | printf("\n%d",e(a,a+5));
10 | printf("\n%d",d(a-1));
11 | }
--------------------------------------------------------------------------------
/P-86.c:
--------------------------------------------------------------------------------
1 | //wap in c to implement stack data structure using array
2 | #include
3 | int data[5];
4 | int top=-1;
5 | void push(int value)
6 | {
7 | if(top>4)
8 | printf("\nStack Overflows insertion not possible");
9 | else{
10 | top++;
11 | data[top] =value;
12 | }
13 | }
14 | void pop()
15 | {
16 | if(top == -1)
17 | printf("\nStack Underflows deletion is not possible.");
18 | else{
19 | printf("\nDeleted : %d", data[top]);
20 | top--;
21 | }
22 | }
23 | int main()
24 | {
25 | push(20);
26 | push(10);
27 | push(30);
28 | push(40);
29 | push(45);
30 | printf("\nStack elements are:");
31 | for(int i=0;i<=top;i++)
32 | {
33 | printf("\n%d",data[i]);
34 | }
35 | pop();
36 | printf("\nNew Stack elements are:");
37 | for(int i=0;i<=top;i++)
38 | {
39 | printf("\n%d",data[i]);
40 | }
41 | }
--------------------------------------------------------------------------------
/P-87.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to implement queue data structure using array.
2 | #include
3 | #include
4 | int queue[5];
5 | int front=-1;
6 | int rear=-1;
7 | void enqueue(int value) {
8 | if(rear==5)
9 | printf("\n Queue is Full");
10 | else
11 | {
12 | queue[rear++]=value;
13 | }
14 | }
15 | void dequeue()
16 | {
17 | if (front == rear)
18 | {
19 | printf("Queue Underflows \n");
20 | }
21 | else
22 | {
23 | printf("Element deleted from queue is : %d\n", queue[front]);
24 | front++;
25 | }
26 | }
27 |
28 | int main()
29 | {
30 | enqueue(1);
31 | enqueue(2);
32 | enqueue(3);
33 | enqueue(4);
34 | enqueue(5);
35 | printf("Queue is : \n");
36 | for (int i = front; i
3 | int main()
4 | {
5 | int data[5]={10,15,2,4,7};
6 | int index;
7 | for (int i = 0; i < 5; i++)
8 | {
9 | printf("%d\t",data[i]);
10 | }
11 | printf("\nEnter Index Position Whose Value Is To Be Deleted:");
12 | scanf("%d",&index);
13 | for (int i = index; i < 5;i++)
14 | {
15 | data[i]=data[i+1];
16 | }
17 | for (int i = 0; i < 4; i++)
18 | {
19 | printf("%d\t",data[i]);
20 | }
21 | }
--------------------------------------------------------------------------------
/P-89.c:
--------------------------------------------------------------------------------
1 | //write a Program in C to create a file
2 | #include
3 | int main() {
4 | char fname[100];
5 | printf("Enter file name to be created >> ");
6 | gets(fname);
7 |
8 | FILE *fp;
9 | fp=fopen(fname, "w");
10 | printf("File successfully created !!! ")
11 | fclose(fp);
12 | }
--------------------------------------------------------------------------------
/P-90.c:
--------------------------------------------------------------------------------
1 | //Write a c program to access elements of an array using pointers.
2 | #include
3 | int main()
4 | {
5 | int arry[5];
6 | int i;
7 | printf("Enter 5 elements for the array: ");
8 | for (i = 0; i < 5; ++i)
9 | scanf("%d", arry + i);
10 | int *ptr = arry;
11 | printf("You have entered \n");
12 | for(i = 0; i < 5; i++)
13 | printf("array[%d] = %d\n",i,*(ptr+i));
14 | }
--------------------------------------------------------------------------------
/P-91.c:
--------------------------------------------------------------------------------
1 | //Write a c program to print the length of array using sizeof function.
2 | #include "stdio.h"
3 | int main()
4 | {
5 | int num[] = {7, 33, 13, 9, 29};
6 | int size = sizeof(num);
7 | printf("The size is %d bytes \n", size);
8 | }
--------------------------------------------------------------------------------
/P-92.c:
--------------------------------------------------------------------------------
1 | //Write a c program to check the repetition of a number in an array.
2 | //Program in C to check the repitition of a number in an array
3 | #include
4 | int main() {
5 | int i, n,s,count=0;
6 | printf("Enter number of elements >> ");
7 | scanf("%d", &n);
8 | int num[n];
9 | for (i = 0; i < n; i++) {
10 | printf("Enter element %d >> ", i);
11 | scanf("%d", &num[i]);
12 | }
13 | for (i = 0; i < n; i++) {
14 | printf("%d ", num[i]);
15 |
16 | }
17 | printf("\nEnter element to be searched >> ");
18 | scanf("%d",&s);
19 | for(i=0;i
3 | #include
4 |
5 | int main(void) {
6 | DIR *d;
7 | struct dirent *dir;
8 | d = opendir(".");
9 | if (d) {
10 | while ((dir = readdir(d)) != NULL) {
11 | printf("%s\n", dir->d_name);
12 | }
13 | closedir(d);
14 | }
15 | return(0);
16 | }
--------------------------------------------------------------------------------
/P-94.c:
--------------------------------------------------------------------------------
1 | //Write a program in c to read data from a file and display.
2 | #include
3 | int main()
4 | {
5 | FILE *fp;
6 | char file_name[100],data[100];
7 | printf("Enter the file name:");
8 | gets(file_name);
9 | fp= fopen(&file_name,"r");
10 | if(fp!=NULL)
11 | {
12 | printf("FILE OPENED!\n");
13 | fgets(data,100,fp);
14 | printf("%s",data);
15 | }
16 | else
17 | {
18 | printf("ERROR!");
19 | }
20 | }
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/query/cache-v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/.cmake/api/v1/query/cache-v2
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/query/codemodel-v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/.cmake/api/v1/query/codemodel-v2
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/query/toolchains-v1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/.cmake/api/v1/query/toolchains-v1
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/cache-v2-d619b76b1cdde7f4b5ec.json:
--------------------------------------------------------------------------------
1 | {
2 | "entries" :
3 | [
4 | {
5 | "name" : "CMAKE_ADDR2LINE",
6 | "properties" :
7 | [
8 | {
9 | "name" : "ADVANCED",
10 | "value" : "1"
11 | },
12 | {
13 | "name" : "HELPSTRING",
14 | "value" : "Path to a program."
15 | }
16 | ],
17 | "type" : "FILEPATH",
18 | "value" : "CMAKE_ADDR2LINE-NOTFOUND"
19 | },
20 | {
21 | "name" : "CMAKE_AR",
22 | "properties" :
23 | [
24 | {
25 | "name" : "ADVANCED",
26 | "value" : "1"
27 | },
28 | {
29 | "name" : "HELPSTRING",
30 | "value" : "Path to a program."
31 | }
32 | ],
33 | "type" : "FILEPATH",
34 | "value" : "/Library/Developer/CommandLineTools/usr/bin/ar"
35 | },
36 | {
37 | "name" : "CMAKE_BUILD_TYPE",
38 | "properties" :
39 | [
40 | {
41 | "name" : "HELPSTRING",
42 | "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..."
43 | }
44 | ],
45 | "type" : "STRING",
46 | "value" : "Debug"
47 | },
48 | {
49 | "name" : "CMAKE_CACHEFILE_DIR",
50 | "properties" :
51 | [
52 | {
53 | "name" : "HELPSTRING",
54 | "value" : "This is the directory where this CMakeCache.txt was created"
55 | }
56 | ],
57 | "type" : "INTERNAL",
58 | "value" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug"
59 | },
60 | {
61 | "name" : "CMAKE_CACHE_MAJOR_VERSION",
62 | "properties" :
63 | [
64 | {
65 | "name" : "HELPSTRING",
66 | "value" : "Major version of cmake used to create the current loaded cache"
67 | }
68 | ],
69 | "type" : "INTERNAL",
70 | "value" : "3"
71 | },
72 | {
73 | "name" : "CMAKE_CACHE_MINOR_VERSION",
74 | "properties" :
75 | [
76 | {
77 | "name" : "HELPSTRING",
78 | "value" : "Minor version of cmake used to create the current loaded cache"
79 | }
80 | ],
81 | "type" : "INTERNAL",
82 | "value" : "26"
83 | },
84 | {
85 | "name" : "CMAKE_CACHE_PATCH_VERSION",
86 | "properties" :
87 | [
88 | {
89 | "name" : "HELPSTRING",
90 | "value" : "Patch version of cmake used to create the current loaded cache"
91 | }
92 | ],
93 | "type" : "INTERNAL",
94 | "value" : "4"
95 | },
96 | {
97 | "name" : "CMAKE_COLOR_DIAGNOSTICS",
98 | "properties" :
99 | [
100 | {
101 | "name" : "HELPSTRING",
102 | "value" : "Enable colored diagnostics throughout."
103 | }
104 | ],
105 | "type" : "BOOL",
106 | "value" : "ON"
107 | },
108 | {
109 | "name" : "CMAKE_COMMAND",
110 | "properties" :
111 | [
112 | {
113 | "name" : "HELPSTRING",
114 | "value" : "Path to CMake executable."
115 | }
116 | ],
117 | "type" : "INTERNAL",
118 | "value" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake"
119 | },
120 | {
121 | "name" : "CMAKE_CPACK_COMMAND",
122 | "properties" :
123 | [
124 | {
125 | "name" : "HELPSTRING",
126 | "value" : "Path to cpack program executable."
127 | }
128 | ],
129 | "type" : "INTERNAL",
130 | "value" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/cpack"
131 | },
132 | {
133 | "name" : "CMAKE_CTEST_COMMAND",
134 | "properties" :
135 | [
136 | {
137 | "name" : "HELPSTRING",
138 | "value" : "Path to ctest program executable."
139 | }
140 | ],
141 | "type" : "INTERNAL",
142 | "value" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/ctest"
143 | },
144 | {
145 | "name" : "CMAKE_C_COMPILER",
146 | "properties" :
147 | [
148 | {
149 | "name" : "ADVANCED",
150 | "value" : "1"
151 | },
152 | {
153 | "name" : "HELPSTRING",
154 | "value" : "C compiler"
155 | }
156 | ],
157 | "type" : "FILEPATH",
158 | "value" : "/Library/Developer/CommandLineTools/usr/bin/cc"
159 | },
160 | {
161 | "name" : "CMAKE_C_FLAGS",
162 | "properties" :
163 | [
164 | {
165 | "name" : "ADVANCED",
166 | "value" : "1"
167 | },
168 | {
169 | "name" : "HELPSTRING",
170 | "value" : "Flags used by the C compiler during all build types."
171 | }
172 | ],
173 | "type" : "STRING",
174 | "value" : ""
175 | },
176 | {
177 | "name" : "CMAKE_C_FLAGS_DEBUG",
178 | "properties" :
179 | [
180 | {
181 | "name" : "ADVANCED",
182 | "value" : "1"
183 | },
184 | {
185 | "name" : "HELPSTRING",
186 | "value" : "Flags used by the C compiler during DEBUG builds."
187 | }
188 | ],
189 | "type" : "STRING",
190 | "value" : "-g"
191 | },
192 | {
193 | "name" : "CMAKE_C_FLAGS_MINSIZEREL",
194 | "properties" :
195 | [
196 | {
197 | "name" : "ADVANCED",
198 | "value" : "1"
199 | },
200 | {
201 | "name" : "HELPSTRING",
202 | "value" : "Flags used by the C compiler during MINSIZEREL builds."
203 | }
204 | ],
205 | "type" : "STRING",
206 | "value" : "-Os -DNDEBUG"
207 | },
208 | {
209 | "name" : "CMAKE_C_FLAGS_RELEASE",
210 | "properties" :
211 | [
212 | {
213 | "name" : "ADVANCED",
214 | "value" : "1"
215 | },
216 | {
217 | "name" : "HELPSTRING",
218 | "value" : "Flags used by the C compiler during RELEASE builds."
219 | }
220 | ],
221 | "type" : "STRING",
222 | "value" : "-O3 -DNDEBUG"
223 | },
224 | {
225 | "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO",
226 | "properties" :
227 | [
228 | {
229 | "name" : "ADVANCED",
230 | "value" : "1"
231 | },
232 | {
233 | "name" : "HELPSTRING",
234 | "value" : "Flags used by the C compiler during RELWITHDEBINFO builds."
235 | }
236 | ],
237 | "type" : "STRING",
238 | "value" : "-O2 -g -DNDEBUG"
239 | },
240 | {
241 | "name" : "CMAKE_DLLTOOL",
242 | "properties" :
243 | [
244 | {
245 | "name" : "ADVANCED",
246 | "value" : "1"
247 | },
248 | {
249 | "name" : "HELPSTRING",
250 | "value" : "Path to a program."
251 | }
252 | ],
253 | "type" : "FILEPATH",
254 | "value" : "CMAKE_DLLTOOL-NOTFOUND"
255 | },
256 | {
257 | "name" : "CMAKE_EXECUTABLE_FORMAT",
258 | "properties" :
259 | [
260 | {
261 | "name" : "HELPSTRING",
262 | "value" : "Executable file format"
263 | }
264 | ],
265 | "type" : "INTERNAL",
266 | "value" : "MACHO"
267 | },
268 | {
269 | "name" : "CMAKE_EXE_LINKER_FLAGS",
270 | "properties" :
271 | [
272 | {
273 | "name" : "ADVANCED",
274 | "value" : "1"
275 | },
276 | {
277 | "name" : "HELPSTRING",
278 | "value" : "Flags used by the linker during all build types."
279 | }
280 | ],
281 | "type" : "STRING",
282 | "value" : ""
283 | },
284 | {
285 | "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG",
286 | "properties" :
287 | [
288 | {
289 | "name" : "ADVANCED",
290 | "value" : "1"
291 | },
292 | {
293 | "name" : "HELPSTRING",
294 | "value" : "Flags used by the linker during DEBUG builds."
295 | }
296 | ],
297 | "type" : "STRING",
298 | "value" : ""
299 | },
300 | {
301 | "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL",
302 | "properties" :
303 | [
304 | {
305 | "name" : "ADVANCED",
306 | "value" : "1"
307 | },
308 | {
309 | "name" : "HELPSTRING",
310 | "value" : "Flags used by the linker during MINSIZEREL builds."
311 | }
312 | ],
313 | "type" : "STRING",
314 | "value" : ""
315 | },
316 | {
317 | "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE",
318 | "properties" :
319 | [
320 | {
321 | "name" : "ADVANCED",
322 | "value" : "1"
323 | },
324 | {
325 | "name" : "HELPSTRING",
326 | "value" : "Flags used by the linker during RELEASE builds."
327 | }
328 | ],
329 | "type" : "STRING",
330 | "value" : ""
331 | },
332 | {
333 | "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",
334 | "properties" :
335 | [
336 | {
337 | "name" : "ADVANCED",
338 | "value" : "1"
339 | },
340 | {
341 | "name" : "HELPSTRING",
342 | "value" : "Flags used by the linker during RELWITHDEBINFO builds."
343 | }
344 | ],
345 | "type" : "STRING",
346 | "value" : ""
347 | },
348 | {
349 | "name" : "CMAKE_EXPORT_COMPILE_COMMANDS",
350 | "properties" :
351 | [
352 | {
353 | "name" : "ADVANCED",
354 | "value" : "1"
355 | },
356 | {
357 | "name" : "HELPSTRING",
358 | "value" : "Enable/Disable output of compile commands during generation."
359 | }
360 | ],
361 | "type" : "BOOL",
362 | "value" : ""
363 | },
364 | {
365 | "name" : "CMAKE_EXTRA_GENERATOR",
366 | "properties" :
367 | [
368 | {
369 | "name" : "HELPSTRING",
370 | "value" : "Name of external makefile project generator."
371 | }
372 | ],
373 | "type" : "INTERNAL",
374 | "value" : ""
375 | },
376 | {
377 | "name" : "CMAKE_FIND_PACKAGE_REDIRECTS_DIR",
378 | "properties" :
379 | [
380 | {
381 | "name" : "HELPSTRING",
382 | "value" : "Value Computed by CMake."
383 | }
384 | ],
385 | "type" : "STATIC",
386 | "value" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/pkgRedirects"
387 | },
388 | {
389 | "name" : "CMAKE_GENERATOR",
390 | "properties" :
391 | [
392 | {
393 | "name" : "HELPSTRING",
394 | "value" : "Name of generator."
395 | }
396 | ],
397 | "type" : "INTERNAL",
398 | "value" : "Ninja"
399 | },
400 | {
401 | "name" : "CMAKE_GENERATOR_INSTANCE",
402 | "properties" :
403 | [
404 | {
405 | "name" : "HELPSTRING",
406 | "value" : "Generator instance identifier."
407 | }
408 | ],
409 | "type" : "INTERNAL",
410 | "value" : ""
411 | },
412 | {
413 | "name" : "CMAKE_GENERATOR_PLATFORM",
414 | "properties" :
415 | [
416 | {
417 | "name" : "HELPSTRING",
418 | "value" : "Name of generator platform."
419 | }
420 | ],
421 | "type" : "INTERNAL",
422 | "value" : ""
423 | },
424 | {
425 | "name" : "CMAKE_GENERATOR_TOOLSET",
426 | "properties" :
427 | [
428 | {
429 | "name" : "HELPSTRING",
430 | "value" : "Name of generator toolset."
431 | }
432 | ],
433 | "type" : "INTERNAL",
434 | "value" : ""
435 | },
436 | {
437 | "name" : "CMAKE_HOME_DIRECTORY",
438 | "properties" :
439 | [
440 | {
441 | "name" : "HELPSTRING",
442 | "value" : "Source directory with the top level CMakeLists.txt file for this project"
443 | }
444 | ],
445 | "type" : "INTERNAL",
446 | "value" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming"
447 | },
448 | {
449 | "name" : "CMAKE_INSTALL_NAME_TOOL",
450 | "properties" :
451 | [
452 | {
453 | "name" : "ADVANCED",
454 | "value" : "1"
455 | },
456 | {
457 | "name" : "HELPSTRING",
458 | "value" : "Path to a program."
459 | }
460 | ],
461 | "type" : "FILEPATH",
462 | "value" : "/usr/bin/install_name_tool"
463 | },
464 | {
465 | "name" : "CMAKE_INSTALL_PREFIX",
466 | "properties" :
467 | [
468 | {
469 | "name" : "HELPSTRING",
470 | "value" : "Install path prefix, prepended onto install directories."
471 | }
472 | ],
473 | "type" : "PATH",
474 | "value" : "/usr/local"
475 | },
476 | {
477 | "name" : "CMAKE_LINKER",
478 | "properties" :
479 | [
480 | {
481 | "name" : "ADVANCED",
482 | "value" : "1"
483 | },
484 | {
485 | "name" : "HELPSTRING",
486 | "value" : "Path to a program."
487 | }
488 | ],
489 | "type" : "FILEPATH",
490 | "value" : "/Library/Developer/CommandLineTools/usr/bin/ld"
491 | },
492 | {
493 | "name" : "CMAKE_MAKE_PROGRAM",
494 | "properties" :
495 | [
496 | {
497 | "name" : "HELPSTRING",
498 | "value" : "No help, variable specified on the command line."
499 | }
500 | ],
501 | "type" : "UNINITIALIZED",
502 | "value" : "/Applications/CLion.app/Contents/bin/ninja/mac/ninja"
503 | },
504 | {
505 | "name" : "CMAKE_MODULE_LINKER_FLAGS",
506 | "properties" :
507 | [
508 | {
509 | "name" : "ADVANCED",
510 | "value" : "1"
511 | },
512 | {
513 | "name" : "HELPSTRING",
514 | "value" : "Flags used by the linker during the creation of modules during all build types."
515 | }
516 | ],
517 | "type" : "STRING",
518 | "value" : ""
519 | },
520 | {
521 | "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG",
522 | "properties" :
523 | [
524 | {
525 | "name" : "ADVANCED",
526 | "value" : "1"
527 | },
528 | {
529 | "name" : "HELPSTRING",
530 | "value" : "Flags used by the linker during the creation of modules during DEBUG builds."
531 | }
532 | ],
533 | "type" : "STRING",
534 | "value" : ""
535 | },
536 | {
537 | "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL",
538 | "properties" :
539 | [
540 | {
541 | "name" : "ADVANCED",
542 | "value" : "1"
543 | },
544 | {
545 | "name" : "HELPSTRING",
546 | "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds."
547 | }
548 | ],
549 | "type" : "STRING",
550 | "value" : ""
551 | },
552 | {
553 | "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE",
554 | "properties" :
555 | [
556 | {
557 | "name" : "ADVANCED",
558 | "value" : "1"
559 | },
560 | {
561 | "name" : "HELPSTRING",
562 | "value" : "Flags used by the linker during the creation of modules during RELEASE builds."
563 | }
564 | ],
565 | "type" : "STRING",
566 | "value" : ""
567 | },
568 | {
569 | "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO",
570 | "properties" :
571 | [
572 | {
573 | "name" : "ADVANCED",
574 | "value" : "1"
575 | },
576 | {
577 | "name" : "HELPSTRING",
578 | "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds."
579 | }
580 | ],
581 | "type" : "STRING",
582 | "value" : ""
583 | },
584 | {
585 | "name" : "CMAKE_NM",
586 | "properties" :
587 | [
588 | {
589 | "name" : "ADVANCED",
590 | "value" : "1"
591 | },
592 | {
593 | "name" : "HELPSTRING",
594 | "value" : "Path to a program."
595 | }
596 | ],
597 | "type" : "FILEPATH",
598 | "value" : "/Library/Developer/CommandLineTools/usr/bin/nm"
599 | },
600 | {
601 | "name" : "CMAKE_NUMBER_OF_MAKEFILES",
602 | "properties" :
603 | [
604 | {
605 | "name" : "HELPSTRING",
606 | "value" : "number of local generators"
607 | }
608 | ],
609 | "type" : "INTERNAL",
610 | "value" : "1"
611 | },
612 | {
613 | "name" : "CMAKE_OBJCOPY",
614 | "properties" :
615 | [
616 | {
617 | "name" : "ADVANCED",
618 | "value" : "1"
619 | },
620 | {
621 | "name" : "HELPSTRING",
622 | "value" : "Path to a program."
623 | }
624 | ],
625 | "type" : "FILEPATH",
626 | "value" : "CMAKE_OBJCOPY-NOTFOUND"
627 | },
628 | {
629 | "name" : "CMAKE_OBJDUMP",
630 | "properties" :
631 | [
632 | {
633 | "name" : "ADVANCED",
634 | "value" : "1"
635 | },
636 | {
637 | "name" : "HELPSTRING",
638 | "value" : "Path to a program."
639 | }
640 | ],
641 | "type" : "FILEPATH",
642 | "value" : "/Library/Developer/CommandLineTools/usr/bin/objdump"
643 | },
644 | {
645 | "name" : "CMAKE_OSX_ARCHITECTURES",
646 | "properties" :
647 | [
648 | {
649 | "name" : "HELPSTRING",
650 | "value" : "Build architectures for OSX"
651 | }
652 | ],
653 | "type" : "STRING",
654 | "value" : ""
655 | },
656 | {
657 | "name" : "CMAKE_OSX_DEPLOYMENT_TARGET",
658 | "properties" :
659 | [
660 | {
661 | "name" : "HELPSTRING",
662 | "value" : "Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value."
663 | }
664 | ],
665 | "type" : "STRING",
666 | "value" : "12.6"
667 | },
668 | {
669 | "name" : "CMAKE_OSX_SYSROOT",
670 | "properties" :
671 | [
672 | {
673 | "name" : "HELPSTRING",
674 | "value" : "The product will be built against the headers and libraries located inside the indicated SDK."
675 | }
676 | ],
677 | "type" : "PATH",
678 | "value" : "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk"
679 | },
680 | {
681 | "name" : "CMAKE_PLATFORM_INFO_INITIALIZED",
682 | "properties" :
683 | [
684 | {
685 | "name" : "HELPSTRING",
686 | "value" : "Platform information initialized"
687 | }
688 | ],
689 | "type" : "INTERNAL",
690 | "value" : "1"
691 | },
692 | {
693 | "name" : "CMAKE_PROJECT_DESCRIPTION",
694 | "properties" :
695 | [
696 | {
697 | "name" : "HELPSTRING",
698 | "value" : "Value Computed by CMake"
699 | }
700 | ],
701 | "type" : "STATIC",
702 | "value" : ""
703 | },
704 | {
705 | "name" : "CMAKE_PROJECT_HOMEPAGE_URL",
706 | "properties" :
707 | [
708 | {
709 | "name" : "HELPSTRING",
710 | "value" : "Value Computed by CMake"
711 | }
712 | ],
713 | "type" : "STATIC",
714 | "value" : ""
715 | },
716 | {
717 | "name" : "CMAKE_PROJECT_NAME",
718 | "properties" :
719 | [
720 | {
721 | "name" : "HELPSTRING",
722 | "value" : "Value Computed by CMake"
723 | }
724 | ],
725 | "type" : "STATIC",
726 | "value" : "Introduction_to_Programming"
727 | },
728 | {
729 | "name" : "CMAKE_RANLIB",
730 | "properties" :
731 | [
732 | {
733 | "name" : "ADVANCED",
734 | "value" : "1"
735 | },
736 | {
737 | "name" : "HELPSTRING",
738 | "value" : "Path to a program."
739 | }
740 | ],
741 | "type" : "FILEPATH",
742 | "value" : "/Library/Developer/CommandLineTools/usr/bin/ranlib"
743 | },
744 | {
745 | "name" : "CMAKE_READELF",
746 | "properties" :
747 | [
748 | {
749 | "name" : "ADVANCED",
750 | "value" : "1"
751 | },
752 | {
753 | "name" : "HELPSTRING",
754 | "value" : "Path to a program."
755 | }
756 | ],
757 | "type" : "FILEPATH",
758 | "value" : "CMAKE_READELF-NOTFOUND"
759 | },
760 | {
761 | "name" : "CMAKE_ROOT",
762 | "properties" :
763 | [
764 | {
765 | "name" : "HELPSTRING",
766 | "value" : "Path to CMake installation."
767 | }
768 | ],
769 | "type" : "INTERNAL",
770 | "value" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26"
771 | },
772 | {
773 | "name" : "CMAKE_SHARED_LINKER_FLAGS",
774 | "properties" :
775 | [
776 | {
777 | "name" : "ADVANCED",
778 | "value" : "1"
779 | },
780 | {
781 | "name" : "HELPSTRING",
782 | "value" : "Flags used by the linker during the creation of shared libraries during all build types."
783 | }
784 | ],
785 | "type" : "STRING",
786 | "value" : ""
787 | },
788 | {
789 | "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG",
790 | "properties" :
791 | [
792 | {
793 | "name" : "ADVANCED",
794 | "value" : "1"
795 | },
796 | {
797 | "name" : "HELPSTRING",
798 | "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds."
799 | }
800 | ],
801 | "type" : "STRING",
802 | "value" : ""
803 | },
804 | {
805 | "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL",
806 | "properties" :
807 | [
808 | {
809 | "name" : "ADVANCED",
810 | "value" : "1"
811 | },
812 | {
813 | "name" : "HELPSTRING",
814 | "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds."
815 | }
816 | ],
817 | "type" : "STRING",
818 | "value" : ""
819 | },
820 | {
821 | "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE",
822 | "properties" :
823 | [
824 | {
825 | "name" : "ADVANCED",
826 | "value" : "1"
827 | },
828 | {
829 | "name" : "HELPSTRING",
830 | "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds."
831 | }
832 | ],
833 | "type" : "STRING",
834 | "value" : ""
835 | },
836 | {
837 | "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO",
838 | "properties" :
839 | [
840 | {
841 | "name" : "ADVANCED",
842 | "value" : "1"
843 | },
844 | {
845 | "name" : "HELPSTRING",
846 | "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds."
847 | }
848 | ],
849 | "type" : "STRING",
850 | "value" : ""
851 | },
852 | {
853 | "name" : "CMAKE_SKIP_INSTALL_RPATH",
854 | "properties" :
855 | [
856 | {
857 | "name" : "ADVANCED",
858 | "value" : "1"
859 | },
860 | {
861 | "name" : "HELPSTRING",
862 | "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building."
863 | }
864 | ],
865 | "type" : "BOOL",
866 | "value" : "NO"
867 | },
868 | {
869 | "name" : "CMAKE_SKIP_RPATH",
870 | "properties" :
871 | [
872 | {
873 | "name" : "ADVANCED",
874 | "value" : "1"
875 | },
876 | {
877 | "name" : "HELPSTRING",
878 | "value" : "If set, runtime paths are not added when using shared libraries."
879 | }
880 | ],
881 | "type" : "BOOL",
882 | "value" : "NO"
883 | },
884 | {
885 | "name" : "CMAKE_STATIC_LINKER_FLAGS",
886 | "properties" :
887 | [
888 | {
889 | "name" : "ADVANCED",
890 | "value" : "1"
891 | },
892 | {
893 | "name" : "HELPSTRING",
894 | "value" : "Flags used by the linker during the creation of static libraries during all build types."
895 | }
896 | ],
897 | "type" : "STRING",
898 | "value" : ""
899 | },
900 | {
901 | "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG",
902 | "properties" :
903 | [
904 | {
905 | "name" : "ADVANCED",
906 | "value" : "1"
907 | },
908 | {
909 | "name" : "HELPSTRING",
910 | "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds."
911 | }
912 | ],
913 | "type" : "STRING",
914 | "value" : ""
915 | },
916 | {
917 | "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL",
918 | "properties" :
919 | [
920 | {
921 | "name" : "ADVANCED",
922 | "value" : "1"
923 | },
924 | {
925 | "name" : "HELPSTRING",
926 | "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds."
927 | }
928 | ],
929 | "type" : "STRING",
930 | "value" : ""
931 | },
932 | {
933 | "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE",
934 | "properties" :
935 | [
936 | {
937 | "name" : "ADVANCED",
938 | "value" : "1"
939 | },
940 | {
941 | "name" : "HELPSTRING",
942 | "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds."
943 | }
944 | ],
945 | "type" : "STRING",
946 | "value" : ""
947 | },
948 | {
949 | "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO",
950 | "properties" :
951 | [
952 | {
953 | "name" : "ADVANCED",
954 | "value" : "1"
955 | },
956 | {
957 | "name" : "HELPSTRING",
958 | "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds."
959 | }
960 | ],
961 | "type" : "STRING",
962 | "value" : ""
963 | },
964 | {
965 | "name" : "CMAKE_STRIP",
966 | "properties" :
967 | [
968 | {
969 | "name" : "ADVANCED",
970 | "value" : "1"
971 | },
972 | {
973 | "name" : "HELPSTRING",
974 | "value" : "Path to a program."
975 | }
976 | ],
977 | "type" : "FILEPATH",
978 | "value" : "/Library/Developer/CommandLineTools/usr/bin/strip"
979 | },
980 | {
981 | "name" : "CMAKE_UNAME",
982 | "properties" :
983 | [
984 | {
985 | "name" : "HELPSTRING",
986 | "value" : "uname command"
987 | }
988 | ],
989 | "type" : "INTERNAL",
990 | "value" : "/usr/bin/uname"
991 | },
992 | {
993 | "name" : "CMAKE_VERBOSE_MAKEFILE",
994 | "properties" :
995 | [
996 | {
997 | "name" : "ADVANCED",
998 | "value" : "1"
999 | },
1000 | {
1001 | "name" : "HELPSTRING",
1002 | "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo."
1003 | }
1004 | ],
1005 | "type" : "BOOL",
1006 | "value" : "FALSE"
1007 | },
1008 | {
1009 | "name" : "Introduction_to_Programming_BINARY_DIR",
1010 | "properties" :
1011 | [
1012 | {
1013 | "name" : "HELPSTRING",
1014 | "value" : "Value Computed by CMake"
1015 | }
1016 | ],
1017 | "type" : "STATIC",
1018 | "value" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug"
1019 | },
1020 | {
1021 | "name" : "Introduction_to_Programming_IS_TOP_LEVEL",
1022 | "properties" :
1023 | [
1024 | {
1025 | "name" : "HELPSTRING",
1026 | "value" : "Value Computed by CMake"
1027 | }
1028 | ],
1029 | "type" : "STATIC",
1030 | "value" : "ON"
1031 | },
1032 | {
1033 | "name" : "Introduction_to_Programming_SOURCE_DIR",
1034 | "properties" :
1035 | [
1036 | {
1037 | "name" : "HELPSTRING",
1038 | "value" : "Value Computed by CMake"
1039 | }
1040 | ],
1041 | "type" : "STATIC",
1042 | "value" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming"
1043 | }
1044 | ],
1045 | "kind" : "cache",
1046 | "version" :
1047 | {
1048 | "major" : 2,
1049 | "minor" : 0
1050 | }
1051 | }
1052 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-3111d43963e0792374af.json:
--------------------------------------------------------------------------------
1 | {
2 | "inputs" :
3 | [
4 | {
5 | "path" : "CMakeLists.txt"
6 | },
7 | {
8 | "isGenerated" : true,
9 | "path" : "cmake-build-debug/CMakeFiles/3.26.4/CMakeSystem.cmake"
10 | },
11 | {
12 | "isCMake" : true,
13 | "isExternal" : true,
14 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInitialize.cmake"
15 | },
16 | {
17 | "isCMake" : true,
18 | "isExternal" : true,
19 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin-Initialize.cmake"
20 | },
21 | {
22 | "isGenerated" : true,
23 | "path" : "cmake-build-debug/CMakeFiles/3.26.4/CMakeCCompiler.cmake"
24 | },
25 | {
26 | "isCMake" : true,
27 | "isExternal" : true,
28 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInformation.cmake"
29 | },
30 | {
31 | "isCMake" : true,
32 | "isExternal" : true,
33 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeGenericSystem.cmake"
34 | },
35 | {
36 | "isCMake" : true,
37 | "isExternal" : true,
38 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeInitializeConfigs.cmake"
39 | },
40 | {
41 | "isCMake" : true,
42 | "isExternal" : true,
43 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin.cmake"
44 | },
45 | {
46 | "isCMake" : true,
47 | "isExternal" : true,
48 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/UnixPaths.cmake"
49 | },
50 | {
51 | "isCMake" : true,
52 | "isExternal" : true,
53 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCInformation.cmake"
54 | },
55 | {
56 | "isCMake" : true,
57 | "isExternal" : true,
58 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeLanguageInformation.cmake"
59 | },
60 | {
61 | "isCMake" : true,
62 | "isExternal" : true,
63 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/AppleClang-C.cmake"
64 | },
65 | {
66 | "isCMake" : true,
67 | "isExternal" : true,
68 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/Clang.cmake"
69 | },
70 | {
71 | "isCMake" : true,
72 | "isExternal" : true,
73 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
74 | },
75 | {
76 | "isCMake" : true,
77 | "isExternal" : true,
78 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/GNU.cmake"
79 | },
80 | {
81 | "isCMake" : true,
82 | "isExternal" : true,
83 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
84 | },
85 | {
86 | "isCMake" : true,
87 | "isExternal" : true,
88 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-AppleClang-C.cmake"
89 | },
90 | {
91 | "isCMake" : true,
92 | "isExternal" : true,
93 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang-C.cmake"
94 | },
95 | {
96 | "isCMake" : true,
97 | "isExternal" : true,
98 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang.cmake"
99 | },
100 | {
101 | "isCMake" : true,
102 | "isExternal" : true,
103 | "path" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCommonLanguageInclude.cmake"
104 | }
105 | ],
106 | "kind" : "cmakeFiles",
107 | "paths" :
108 | {
109 | "build" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug",
110 | "source" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming"
111 | },
112 | "version" :
113 | {
114 | "major" : 1,
115 | "minor" : 0
116 | }
117 | }
118 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-9c2da1d38a758d82d408.json:
--------------------------------------------------------------------------------
1 | {
2 | "configurations" :
3 | [
4 | {
5 | "directories" :
6 | [
7 | {
8 | "build" : ".",
9 | "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json",
10 | "minimumCMakeVersion" :
11 | {
12 | "string" : "3.26"
13 | },
14 | "projectIndex" : 0,
15 | "source" : ".",
16 | "targetIndexes" :
17 | [
18 | 0
19 | ]
20 | }
21 | ],
22 | "name" : "Debug",
23 | "projects" :
24 | [
25 | {
26 | "directoryIndexes" :
27 | [
28 | 0
29 | ],
30 | "name" : "Introduction_to_Programming",
31 | "targetIndexes" :
32 | [
33 | 0
34 | ]
35 | }
36 | ],
37 | "targets" :
38 | [
39 | {
40 | "directoryIndex" : 0,
41 | "id" : "Introduction_to_Programming::@6890427a1f51a3e7e1df",
42 | "jsonFile" : "target-Introduction_to_Programming-Debug-016be250be9cd03ae8f0.json",
43 | "name" : "Introduction_to_Programming",
44 | "projectIndex" : 0
45 | }
46 | ]
47 | }
48 | ],
49 | "kind" : "codemodel",
50 | "paths" :
51 | {
52 | "build" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug",
53 | "source" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming"
54 | },
55 | "version" :
56 | {
57 | "major" : 2,
58 | "minor" : 5
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json:
--------------------------------------------------------------------------------
1 | {
2 | "backtraceGraph" :
3 | {
4 | "commands" : [],
5 | "files" : [],
6 | "nodes" : []
7 | },
8 | "installers" : [],
9 | "paths" :
10 | {
11 | "build" : ".",
12 | "source" : "."
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/index-2023-11-03T04-08-32-0218.json:
--------------------------------------------------------------------------------
1 | {
2 | "cmake" :
3 | {
4 | "generator" :
5 | {
6 | "multiConfig" : false,
7 | "name" : "Ninja"
8 | },
9 | "paths" :
10 | {
11 | "cmake" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake",
12 | "cpack" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/cpack",
13 | "ctest" : "/Applications/CLion.app/Contents/bin/cmake/mac/bin/ctest",
14 | "root" : "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26"
15 | },
16 | "version" :
17 | {
18 | "isDirty" : false,
19 | "major" : 3,
20 | "minor" : 26,
21 | "patch" : 4,
22 | "string" : "3.26.4",
23 | "suffix" : ""
24 | }
25 | },
26 | "objects" :
27 | [
28 | {
29 | "jsonFile" : "codemodel-v2-9c2da1d38a758d82d408.json",
30 | "kind" : "codemodel",
31 | "version" :
32 | {
33 | "major" : 2,
34 | "minor" : 5
35 | }
36 | },
37 | {
38 | "jsonFile" : "cache-v2-d619b76b1cdde7f4b5ec.json",
39 | "kind" : "cache",
40 | "version" :
41 | {
42 | "major" : 2,
43 | "minor" : 0
44 | }
45 | },
46 | {
47 | "jsonFile" : "cmakeFiles-v1-3111d43963e0792374af.json",
48 | "kind" : "cmakeFiles",
49 | "version" :
50 | {
51 | "major" : 1,
52 | "minor" : 0
53 | }
54 | },
55 | {
56 | "jsonFile" : "toolchains-v1-5896f1444c2b2e9a8321.json",
57 | "kind" : "toolchains",
58 | "version" :
59 | {
60 | "major" : 1,
61 | "minor" : 0
62 | }
63 | }
64 | ],
65 | "reply" :
66 | {
67 | "cache-v2" :
68 | {
69 | "jsonFile" : "cache-v2-d619b76b1cdde7f4b5ec.json",
70 | "kind" : "cache",
71 | "version" :
72 | {
73 | "major" : 2,
74 | "minor" : 0
75 | }
76 | },
77 | "cmakeFiles-v1" :
78 | {
79 | "jsonFile" : "cmakeFiles-v1-3111d43963e0792374af.json",
80 | "kind" : "cmakeFiles",
81 | "version" :
82 | {
83 | "major" : 1,
84 | "minor" : 0
85 | }
86 | },
87 | "codemodel-v2" :
88 | {
89 | "jsonFile" : "codemodel-v2-9c2da1d38a758d82d408.json",
90 | "kind" : "codemodel",
91 | "version" :
92 | {
93 | "major" : 2,
94 | "minor" : 5
95 | }
96 | },
97 | "toolchains-v1" :
98 | {
99 | "jsonFile" : "toolchains-v1-5896f1444c2b2e9a8321.json",
100 | "kind" : "toolchains",
101 | "version" :
102 | {
103 | "major" : 1,
104 | "minor" : 0
105 | }
106 | }
107 | }
108 | }
109 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/target-Introduction_to_Programming-Debug-016be250be9cd03ae8f0.json:
--------------------------------------------------------------------------------
1 | {
2 | "artifacts" :
3 | [
4 | {
5 | "path" : "Introduction_to_Programming"
6 | }
7 | ],
8 | "backtrace" : 1,
9 | "backtraceGraph" :
10 | {
11 | "commands" :
12 | [
13 | "add_executable",
14 | "include_directories"
15 | ],
16 | "files" :
17 | [
18 | "CMakeLists.txt"
19 | ],
20 | "nodes" :
21 | [
22 | {
23 | "file" : 0
24 | },
25 | {
26 | "command" : 0,
27 | "file" : 0,
28 | "line" : 8,
29 | "parent" : 0
30 | },
31 | {
32 | "command" : 1,
33 | "file" : 0,
34 | "line" : 6,
35 | "parent" : 0
36 | }
37 | ]
38 | },
39 | "compileGroups" :
40 | [
41 | {
42 | "compileCommandFragments" :
43 | [
44 | {
45 | "fragment" : "-g -std=gnu11 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -fcolor-diagnostics"
46 | }
47 | ],
48 | "includes" :
49 | [
50 | {
51 | "backtrace" : 2,
52 | "path" : "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/."
53 | }
54 | ],
55 | "language" : "C",
56 | "languageStandard" :
57 | {
58 | "backtraces" :
59 | [
60 | 1
61 | ],
62 | "standard" : "11"
63 | },
64 | "sourceIndexes" :
65 | [
66 | 0
67 | ]
68 | }
69 | ],
70 | "id" : "Introduction_to_Programming::@6890427a1f51a3e7e1df",
71 | "link" :
72 | {
73 | "commandFragments" :
74 | [
75 | {
76 | "fragment" : "-g",
77 | "role" : "flags"
78 | },
79 | {
80 | "fragment" : "",
81 | "role" : "flags"
82 | }
83 | ],
84 | "language" : "C"
85 | },
86 | "name" : "Introduction_to_Programming",
87 | "nameOnDisk" : "Introduction_to_Programming",
88 | "paths" :
89 | {
90 | "build" : ".",
91 | "source" : "."
92 | },
93 | "sourceGroups" :
94 | [
95 | {
96 | "name" : "Source Files",
97 | "sourceIndexes" :
98 | [
99 | 0
100 | ]
101 | }
102 | ],
103 | "sources" :
104 | [
105 | {
106 | "backtrace" : 1,
107 | "compileGroupIndex" : 0,
108 | "path" : "sample.c",
109 | "sourceGroupIndex" : 0
110 | }
111 | ],
112 | "type" : "EXECUTABLE"
113 | }
114 |
--------------------------------------------------------------------------------
/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-5896f1444c2b2e9a8321.json:
--------------------------------------------------------------------------------
1 | {
2 | "kind" : "toolchains",
3 | "toolchains" :
4 | [
5 | {
6 | "compiler" :
7 | {
8 | "id" : "AppleClang",
9 | "implicit" :
10 | {
11 | "includeDirectories" :
12 | [
13 | "/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include",
14 | "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include",
15 | "/Library/Developer/CommandLineTools/usr/include"
16 | ],
17 | "linkDirectories" :
18 | [
19 | "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib"
20 | ],
21 | "linkFrameworkDirectories" :
22 | [
23 | "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks"
24 | ],
25 | "linkLibraries" : []
26 | },
27 | "path" : "/Library/Developer/CommandLineTools/usr/bin/cc",
28 | "version" : "14.0.0.14000029"
29 | },
30 | "language" : "C",
31 | "sourceFileExtensions" :
32 | [
33 | "c",
34 | "m"
35 | ]
36 | }
37 | ],
38 | "version" :
39 | {
40 | "major" : 1,
41 | "minor" : 0
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/cmake-build-debug/.ninja_deps:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/.ninja_deps
--------------------------------------------------------------------------------
/cmake-build-debug/.ninja_log:
--------------------------------------------------------------------------------
1 | # ninja log v5
2 | 523 638 1693295641089413577 CMakeFiles/Introduction_to_Programming.dir/j.c.o 9d88eed7c0c2b864
3 | 585 688 1693295641141395927 CMakeFiles/Introduction_to_Programming.dir/l.c.o ba85ba2fb9ec2ed4
4 | 1431 1654 1700714302679877886 Introduction_to_Programming d8eabfdd7567fb58
5 | 525 633 1693295641084212666 CMakeFiles/Introduction_to_Programming.dir/k.c.o 64a7d6f351ec47e6
6 | 396 523 1693295640972877261 CMakeFiles/Introduction_to_Programming.dir/g.c.o 8f6187997be24019
7 | 289 478 1693295640929642443 CMakeFiles/Introduction_to_Programming.dir/f.c.o 1219baf672c2f235
8 | 479 585 1693295641034792740 CMakeFiles/Introduction_to_Programming.dir/i.c.o d4c3d832c1131df4
9 | 10 429 1698645402260662183 CMakeFiles/Introduction_to_Programming.dir/ppp.c.o 792e1307cabf6d0e
10 | 272 396 1693295640846801073 CMakeFiles/Introduction_to_Programming.dir/d.c.o f3987c402e16b72b
11 | 275 401 1693295640850563343 CMakeFiles/Introduction_to_Programming.dir/e.c.o bb1eae387f647482
12 | 1 271 1698984512157048100 build.ninja 4e5bf3e382605152
13 | 15 181 1693302154140463455 CMakeFiles/Introduction_to_Programming.dir/o.c.o c68d6b9e47aa9b2e
14 | 401 525 1693295640972889026 CMakeFiles/Introduction_to_Programming.dir/h.c.o d90a5413cfab4b41
15 | 634 724 1693295641177935968 CMakeFiles/Introduction_to_Programming.dir/m.c.o dc77d648aa5273d
16 | 2 289 1693295640734034162 CMakeFiles/Introduction_to_Programming.dir/c.c.o 705b93237eeb36fe
17 | 2 275 1693295640717943941 CMakeFiles/Introduction_to_Programming.dir/b.c.o 23a95265ef019769
18 | 0 271 1693295640717953005 CMakeFiles/Introduction_to_Programming.dir/a.c.o d9bd55671a306267
19 | 2 1428 1700714302444458475 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
20 | 4 158 1698646111205902267 CMakeFiles/Introduction_to_Programming.dir/testing.c.o 35522d223cb4c64f
21 | 0 123 1700714306407821192 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
22 | 123 261 1700714306546610142 Introduction_to_Programming d8eabfdd7567fb58
23 | 2 235 1700714719940109323 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
24 | 236 422 1700714720126857112 Introduction_to_Programming d8eabfdd7567fb58
25 | 0 130 1700714731493804294 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
26 | 131 261 1700714731622738579 Introduction_to_Programming d8eabfdd7567fb58
27 | 10 984 1700736862435390149 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
28 | 985 1266 1700736862725861797 Introduction_to_Programming d8eabfdd7567fb58
29 | 1 817 1700737715399561191 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
30 | 817 1078 1700737715670306339 Introduction_to_Programming d8eabfdd7567fb58
31 | 0 103 1700737961178555307 CMakeFiles/Introduction_to_Programming.dir/sample.c.o 377b12cd66bdc739
32 | 103 236 1700737961309343343 Introduction_to_Programming d8eabfdd7567fb58
33 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeCache.txt:
--------------------------------------------------------------------------------
1 | # This is the CMakeCache file.
2 | # For build in directory: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
3 | # It was generated by CMake: /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake
4 | # You can edit this file to change values found and used by cmake.
5 | # If you do not want to change any of the values, simply exit the editor.
6 | # If you do want to change a value, simply edit, save, and exit the editor.
7 | # The syntax for the file is as follows:
8 | # KEY:TYPE=VALUE
9 | # KEY is the name of a variable in the cache.
10 | # TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11 | # VALUE is the current value for the KEY.
12 |
13 | ########################
14 | # EXTERNAL cache entries
15 | ########################
16 |
17 | //Path to a program.
18 | CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUND
19 |
20 | //Path to a program.
21 | CMAKE_AR:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ar
22 |
23 | //Choose the type of build, options are: None Debug Release RelWithDebInfo
24 | // MinSizeRel ...
25 | CMAKE_BUILD_TYPE:STRING=Debug
26 |
27 | //Enable colored diagnostics throughout.
28 | CMAKE_COLOR_DIAGNOSTICS:BOOL=ON
29 |
30 | //C compiler
31 | CMAKE_C_COMPILER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/cc
32 |
33 | //Flags used by the C compiler during all build types.
34 | CMAKE_C_FLAGS:STRING=
35 |
36 | //Flags used by the C compiler during DEBUG builds.
37 | CMAKE_C_FLAGS_DEBUG:STRING=-g
38 |
39 | //Flags used by the C compiler during MINSIZEREL builds.
40 | CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
41 |
42 | //Flags used by the C compiler during RELEASE builds.
43 | CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
44 |
45 | //Flags used by the C compiler during RELWITHDEBINFO builds.
46 | CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
47 |
48 | //Path to a program.
49 | CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
50 |
51 | //Flags used by the linker during all build types.
52 | CMAKE_EXE_LINKER_FLAGS:STRING=
53 |
54 | //Flags used by the linker during DEBUG builds.
55 | CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
56 |
57 | //Flags used by the linker during MINSIZEREL builds.
58 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
59 |
60 | //Flags used by the linker during RELEASE builds.
61 | CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
62 |
63 | //Flags used by the linker during RELWITHDEBINFO builds.
64 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
65 |
66 | //Enable/Disable output of compile commands during generation.
67 | CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
68 |
69 | //Value Computed by CMake.
70 | CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/pkgRedirects
71 |
72 | //Path to a program.
73 | CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
74 |
75 | //Install path prefix, prepended onto install directories.
76 | CMAKE_INSTALL_PREFIX:PATH=/usr/local
77 |
78 | //Path to a program.
79 | CMAKE_LINKER:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ld
80 |
81 | //No help, variable specified on the command line.
82 | CMAKE_MAKE_PROGRAM:UNINITIALIZED=/Applications/CLion.app/Contents/bin/ninja/mac/ninja
83 |
84 | //Flags used by the linker during the creation of modules during
85 | // all build types.
86 | CMAKE_MODULE_LINKER_FLAGS:STRING=
87 |
88 | //Flags used by the linker during the creation of modules during
89 | // DEBUG builds.
90 | CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
91 |
92 | //Flags used by the linker during the creation of modules during
93 | // MINSIZEREL builds.
94 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
95 |
96 | //Flags used by the linker during the creation of modules during
97 | // RELEASE builds.
98 | CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
99 |
100 | //Flags used by the linker during the creation of modules during
101 | // RELWITHDEBINFO builds.
102 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
103 |
104 | //Path to a program.
105 | CMAKE_NM:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/nm
106 |
107 | //Path to a program.
108 | CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND
109 |
110 | //Path to a program.
111 | CMAKE_OBJDUMP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/objdump
112 |
113 | //Build architectures for OSX
114 | CMAKE_OSX_ARCHITECTURES:STRING=
115 |
116 | //Minimum OS X version to target for deployment (at runtime); newer
117 | // APIs weak linked. Set to empty string for default value.
118 | CMAKE_OSX_DEPLOYMENT_TARGET:STRING=12.6
119 |
120 | //The product will be built against the headers and libraries located
121 | // inside the indicated SDK.
122 | CMAKE_OSX_SYSROOT:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk
123 |
124 | //Value Computed by CMake
125 | CMAKE_PROJECT_DESCRIPTION:STATIC=
126 |
127 | //Value Computed by CMake
128 | CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
129 |
130 | //Value Computed by CMake
131 | CMAKE_PROJECT_NAME:STATIC=Introduction_to_Programming
132 |
133 | //Path to a program.
134 | CMAKE_RANLIB:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/ranlib
135 |
136 | //Path to a program.
137 | CMAKE_READELF:FILEPATH=CMAKE_READELF-NOTFOUND
138 |
139 | //Flags used by the linker during the creation of shared libraries
140 | // during all build types.
141 | CMAKE_SHARED_LINKER_FLAGS:STRING=
142 |
143 | //Flags used by the linker during the creation of shared libraries
144 | // during DEBUG builds.
145 | CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
146 |
147 | //Flags used by the linker during the creation of shared libraries
148 | // during MINSIZEREL builds.
149 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
150 |
151 | //Flags used by the linker during the creation of shared libraries
152 | // during RELEASE builds.
153 | CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
154 |
155 | //Flags used by the linker during the creation of shared libraries
156 | // during RELWITHDEBINFO builds.
157 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
158 |
159 | //If set, runtime paths are not added when installing shared libraries,
160 | // but are added when building.
161 | CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
162 |
163 | //If set, runtime paths are not added when using shared libraries.
164 | CMAKE_SKIP_RPATH:BOOL=NO
165 |
166 | //Flags used by the linker during the creation of static libraries
167 | // during all build types.
168 | CMAKE_STATIC_LINKER_FLAGS:STRING=
169 |
170 | //Flags used by the linker during the creation of static libraries
171 | // during DEBUG builds.
172 | CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
173 |
174 | //Flags used by the linker during the creation of static libraries
175 | // during MINSIZEREL builds.
176 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
177 |
178 | //Flags used by the linker during the creation of static libraries
179 | // during RELEASE builds.
180 | CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
181 |
182 | //Flags used by the linker during the creation of static libraries
183 | // during RELWITHDEBINFO builds.
184 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
185 |
186 | //Path to a program.
187 | CMAKE_STRIP:FILEPATH=/Library/Developer/CommandLineTools/usr/bin/strip
188 |
189 | //If this value is on, makefiles will be generated without the
190 | // .SILENT directive, and all commands will be echoed to the console
191 | // during the make. This is useful for debugging only. With Visual
192 | // Studio IDE projects all commands are done without /nologo.
193 | CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
194 |
195 | //Value Computed by CMake
196 | Introduction_to_Programming_BINARY_DIR:STATIC=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
197 |
198 | //Value Computed by CMake
199 | Introduction_to_Programming_IS_TOP_LEVEL:STATIC=ON
200 |
201 | //Value Computed by CMake
202 | Introduction_to_Programming_SOURCE_DIR:STATIC=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming
203 |
204 |
205 | ########################
206 | # INTERNAL cache entries
207 | ########################
208 |
209 | //ADVANCED property for variable: CMAKE_ADDR2LINE
210 | CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
211 | //ADVANCED property for variable: CMAKE_AR
212 | CMAKE_AR-ADVANCED:INTERNAL=1
213 | //This is the directory where this CMakeCache.txt was created
214 | CMAKE_CACHEFILE_DIR:INTERNAL=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
215 | //Major version of cmake used to create the current loaded cache
216 | CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
217 | //Minor version of cmake used to create the current loaded cache
218 | CMAKE_CACHE_MINOR_VERSION:INTERNAL=26
219 | //Patch version of cmake used to create the current loaded cache
220 | CMAKE_CACHE_PATCH_VERSION:INTERNAL=4
221 | //Path to CMake executable.
222 | CMAKE_COMMAND:INTERNAL=/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake
223 | //Path to cpack program executable.
224 | CMAKE_CPACK_COMMAND:INTERNAL=/Applications/CLion.app/Contents/bin/cmake/mac/bin/cpack
225 | //Path to ctest program executable.
226 | CMAKE_CTEST_COMMAND:INTERNAL=/Applications/CLion.app/Contents/bin/cmake/mac/bin/ctest
227 | //ADVANCED property for variable: CMAKE_C_COMPILER
228 | CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
229 | //ADVANCED property for variable: CMAKE_C_FLAGS
230 | CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
231 | //ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
232 | CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
233 | //ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
234 | CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
235 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
236 | CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
237 | //ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
238 | CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
239 | //ADVANCED property for variable: CMAKE_DLLTOOL
240 | CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
241 | //Executable file format
242 | CMAKE_EXECUTABLE_FORMAT:INTERNAL=MACHO
243 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
244 | CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
245 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
246 | CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
247 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
248 | CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
249 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
250 | CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
251 | //ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
252 | CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
253 | //ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
254 | CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
255 | //Name of external makefile project generator.
256 | CMAKE_EXTRA_GENERATOR:INTERNAL=
257 | //Name of generator.
258 | CMAKE_GENERATOR:INTERNAL=Ninja
259 | //Generator instance identifier.
260 | CMAKE_GENERATOR_INSTANCE:INTERNAL=
261 | //Name of generator platform.
262 | CMAKE_GENERATOR_PLATFORM:INTERNAL=
263 | //Name of generator toolset.
264 | CMAKE_GENERATOR_TOOLSET:INTERNAL=
265 | //Source directory with the top level CMakeLists.txt file for this
266 | // project
267 | CMAKE_HOME_DIRECTORY:INTERNAL=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming
268 | //ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
269 | CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
270 | //ADVANCED property for variable: CMAKE_LINKER
271 | CMAKE_LINKER-ADVANCED:INTERNAL=1
272 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
273 | CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
274 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
275 | CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
276 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
277 | CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
278 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
279 | CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
280 | //ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
281 | CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
282 | //ADVANCED property for variable: CMAKE_NM
283 | CMAKE_NM-ADVANCED:INTERNAL=1
284 | //number of local generators
285 | CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
286 | //ADVANCED property for variable: CMAKE_OBJCOPY
287 | CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
288 | //ADVANCED property for variable: CMAKE_OBJDUMP
289 | CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
290 | //Platform information initialized
291 | CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
292 | //ADVANCED property for variable: CMAKE_RANLIB
293 | CMAKE_RANLIB-ADVANCED:INTERNAL=1
294 | //ADVANCED property for variable: CMAKE_READELF
295 | CMAKE_READELF-ADVANCED:INTERNAL=1
296 | //Path to CMake installation.
297 | CMAKE_ROOT:INTERNAL=/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26
298 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
299 | CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
300 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
301 | CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
302 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
303 | CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
304 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
305 | CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
306 | //ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
307 | CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
308 | //ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
309 | CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
310 | //ADVANCED property for variable: CMAKE_SKIP_RPATH
311 | CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
312 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
313 | CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
314 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
315 | CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
316 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
317 | CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
318 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
319 | CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
320 | //ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
321 | CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
322 | //ADVANCED property for variable: CMAKE_STRIP
323 | CMAKE_STRIP-ADVANCED:INTERNAL=1
324 | //uname command
325 | CMAKE_UNAME:INTERNAL=/usr/bin/uname
326 | //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
327 | CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
328 |
329 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/3.26.4/CMakeCCompiler.cmake:
--------------------------------------------------------------------------------
1 | set(CMAKE_C_COMPILER "/Library/Developer/CommandLineTools/usr/bin/cc")
2 | set(CMAKE_C_COMPILER_ARG1 "")
3 | set(CMAKE_C_COMPILER_ID "AppleClang")
4 | set(CMAKE_C_COMPILER_VERSION "14.0.0.14000029")
5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
6 | set(CMAKE_C_COMPILER_WRAPPER "")
7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17")
8 | set(CMAKE_C_EXTENSIONS_COMPUTED_DEFAULT "ON")
9 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23")
10 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
11 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
12 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
13 | set(CMAKE_C17_COMPILE_FEATURES "c_std_17")
14 | set(CMAKE_C23_COMPILE_FEATURES "c_std_23")
15 |
16 | set(CMAKE_C_PLATFORM_ID "Darwin")
17 | set(CMAKE_C_SIMULATE_ID "")
18 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "GNU")
19 | set(CMAKE_C_SIMULATE_VERSION "")
20 |
21 |
22 |
23 |
24 | set(CMAKE_AR "/Library/Developer/CommandLineTools/usr/bin/ar")
25 | set(CMAKE_C_COMPILER_AR "")
26 | set(CMAKE_RANLIB "/Library/Developer/CommandLineTools/usr/bin/ranlib")
27 | set(CMAKE_C_COMPILER_RANLIB "")
28 | set(CMAKE_LINKER "/Library/Developer/CommandLineTools/usr/bin/ld")
29 | set(CMAKE_MT "")
30 | set(CMAKE_COMPILER_IS_GNUCC )
31 | set(CMAKE_C_COMPILER_LOADED 1)
32 | set(CMAKE_C_COMPILER_WORKS TRUE)
33 | set(CMAKE_C_ABI_COMPILED TRUE)
34 |
35 | set(CMAKE_C_COMPILER_ENV_VAR "CC")
36 |
37 | set(CMAKE_C_COMPILER_ID_RUN 1)
38 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
39 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
40 | set(CMAKE_C_LINKER_PREFERENCE 10)
41 |
42 | # Save compiler ABI information.
43 | set(CMAKE_C_SIZEOF_DATA_PTR "8")
44 | set(CMAKE_C_COMPILER_ABI "")
45 | set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
46 | set(CMAKE_C_LIBRARY_ARCHITECTURE "")
47 |
48 | if(CMAKE_C_SIZEOF_DATA_PTR)
49 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
50 | endif()
51 |
52 | if(CMAKE_C_COMPILER_ABI)
53 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
54 | endif()
55 |
56 | if(CMAKE_C_LIBRARY_ARCHITECTURE)
57 | set(CMAKE_LIBRARY_ARCHITECTURE "")
58 | endif()
59 |
60 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
61 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
62 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
63 | endif()
64 |
65 |
66 |
67 |
68 |
69 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include;/Library/Developer/CommandLineTools/usr/include")
70 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "")
71 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib")
72 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks")
73 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/3.26.4/CMakeDetermineCompilerABI_C.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/3.26.4/CMakeDetermineCompilerABI_C.bin
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/3.26.4/CMakeSystem.cmake:
--------------------------------------------------------------------------------
1 | set(CMAKE_HOST_SYSTEM "Darwin-21.6.0")
2 | set(CMAKE_HOST_SYSTEM_NAME "Darwin")
3 | set(CMAKE_HOST_SYSTEM_VERSION "21.6.0")
4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
5 |
6 |
7 |
8 | set(CMAKE_SYSTEM "Darwin-21.6.0")
9 | set(CMAKE_SYSTEM_NAME "Darwin")
10 | set(CMAKE_SYSTEM_VERSION "21.6.0")
11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64")
12 |
13 | set(CMAKE_CROSSCOMPILING "FALSE")
14 |
15 | set(CMAKE_SYSTEM_LOADED 1)
16 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.c:
--------------------------------------------------------------------------------
1 | #ifdef __cplusplus
2 | # error "A C++ compiler has been selected for C."
3 | #endif
4 |
5 | #if defined(__18CXX)
6 | # define ID_VOID_MAIN
7 | #endif
8 | #if defined(__CLASSIC_C__)
9 | /* cv-qualifiers did not exist in K&R C */
10 | # define const
11 | # define volatile
12 | #endif
13 |
14 | #if !defined(__has_include)
15 | /* If the compiler does not have __has_include, pretend the answer is
16 | always no. */
17 | # define __has_include(x) 0
18 | #endif
19 |
20 |
21 | /* Version number components: V=Version, R=Revision, P=Patch
22 | Version date components: YYYY=Year, MM=Month, DD=Day */
23 |
24 | #if defined(__INTEL_COMPILER) || defined(__ICC)
25 | # define COMPILER_ID "Intel"
26 | # if defined(_MSC_VER)
27 | # define SIMULATE_ID "MSVC"
28 | # endif
29 | # if defined(__GNUC__)
30 | # define SIMULATE_ID "GNU"
31 | # endif
32 | /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
33 | except that a few beta releases use the old format with V=2021. */
34 | # if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
35 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
36 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
37 | # if defined(__INTEL_COMPILER_UPDATE)
38 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
39 | # else
40 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
41 | # endif
42 | # else
43 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
44 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
45 | /* The third version component from --version is an update index,
46 | but no macro is provided for it. */
47 | # define COMPILER_VERSION_PATCH DEC(0)
48 | # endif
49 | # if defined(__INTEL_COMPILER_BUILD_DATE)
50 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
51 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
52 | # endif
53 | # if defined(_MSC_VER)
54 | /* _MSC_VER = VVRR */
55 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
56 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
57 | # endif
58 | # if defined(__GNUC__)
59 | # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
60 | # elif defined(__GNUG__)
61 | # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
62 | # endif
63 | # if defined(__GNUC_MINOR__)
64 | # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
65 | # endif
66 | # if defined(__GNUC_PATCHLEVEL__)
67 | # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
68 | # endif
69 |
70 | #elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
71 | # define COMPILER_ID "IntelLLVM"
72 | #if defined(_MSC_VER)
73 | # define SIMULATE_ID "MSVC"
74 | #endif
75 | #if defined(__GNUC__)
76 | # define SIMULATE_ID "GNU"
77 | #endif
78 | /* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
79 | * later. Look for 6 digit vs. 8 digit version number to decide encoding.
80 | * VVVV is no smaller than the current year when a version is released.
81 | */
82 | #if __INTEL_LLVM_COMPILER < 1000000L
83 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
84 | # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
85 | # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
86 | #else
87 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
88 | # define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
89 | # define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
90 | #endif
91 | #if defined(_MSC_VER)
92 | /* _MSC_VER = VVRR */
93 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
94 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
95 | #endif
96 | #if defined(__GNUC__)
97 | # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
98 | #elif defined(__GNUG__)
99 | # define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
100 | #endif
101 | #if defined(__GNUC_MINOR__)
102 | # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
103 | #endif
104 | #if defined(__GNUC_PATCHLEVEL__)
105 | # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
106 | #endif
107 |
108 | #elif defined(__PATHCC__)
109 | # define COMPILER_ID "PathScale"
110 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
111 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
112 | # if defined(__PATHCC_PATCHLEVEL__)
113 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
114 | # endif
115 |
116 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
117 | # define COMPILER_ID "Embarcadero"
118 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
119 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
120 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
121 |
122 | #elif defined(__BORLANDC__)
123 | # define COMPILER_ID "Borland"
124 | /* __BORLANDC__ = 0xVRR */
125 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
126 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
127 |
128 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200
129 | # define COMPILER_ID "Watcom"
130 | /* __WATCOMC__ = VVRR */
131 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
132 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
133 | # if (__WATCOMC__ % 10) > 0
134 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
135 | # endif
136 |
137 | #elif defined(__WATCOMC__)
138 | # define COMPILER_ID "OpenWatcom"
139 | /* __WATCOMC__ = VVRP + 1100 */
140 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
141 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
142 | # if (__WATCOMC__ % 10) > 0
143 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
144 | # endif
145 |
146 | #elif defined(__SUNPRO_C)
147 | # define COMPILER_ID "SunPro"
148 | # if __SUNPRO_C >= 0x5100
149 | /* __SUNPRO_C = 0xVRRP */
150 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12)
151 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF)
152 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
153 | # else
154 | /* __SUNPRO_CC = 0xVRP */
155 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8)
156 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF)
157 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF)
158 | # endif
159 |
160 | #elif defined(__HP_cc)
161 | # define COMPILER_ID "HP"
162 | /* __HP_cc = VVRRPP */
163 | # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000)
164 | # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100)
165 | # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100)
166 |
167 | #elif defined(__DECC)
168 | # define COMPILER_ID "Compaq"
169 | /* __DECC_VER = VVRRTPPPP */
170 | # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000)
171 | # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100)
172 | # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000)
173 |
174 | #elif defined(__IBMC__) && defined(__COMPILER_VER__)
175 | # define COMPILER_ID "zOS"
176 | /* __IBMC__ = VRP */
177 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
178 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
179 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
180 |
181 | #elif defined(__open_xl__) && defined(__clang__)
182 | # define COMPILER_ID "IBMClang"
183 | # define COMPILER_VERSION_MAJOR DEC(__open_xl_version__)
184 | # define COMPILER_VERSION_MINOR DEC(__open_xl_release__)
185 | # define COMPILER_VERSION_PATCH DEC(__open_xl_modification__)
186 | # define COMPILER_VERSION_TWEAK DEC(__open_xl_ptf_fix_level__)
187 |
188 |
189 | #elif defined(__ibmxl__) && defined(__clang__)
190 | # define COMPILER_ID "XLClang"
191 | # define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
192 | # define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
193 | # define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
194 | # define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
195 |
196 |
197 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800
198 | # define COMPILER_ID "XL"
199 | /* __IBMC__ = VRP */
200 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
201 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
202 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
203 |
204 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800
205 | # define COMPILER_ID "VisualAge"
206 | /* __IBMC__ = VRP */
207 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100)
208 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10)
209 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10)
210 |
211 | #elif defined(__NVCOMPILER)
212 | # define COMPILER_ID "NVHPC"
213 | # define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
214 | # define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
215 | # if defined(__NVCOMPILER_PATCHLEVEL__)
216 | # define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
217 | # endif
218 |
219 | #elif defined(__PGI)
220 | # define COMPILER_ID "PGI"
221 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__)
222 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
223 | # if defined(__PGIC_PATCHLEVEL__)
224 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
225 | # endif
226 |
227 | #elif defined(_CRAYC)
228 | # define COMPILER_ID "Cray"
229 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
230 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
231 |
232 | #elif defined(__TI_COMPILER_VERSION__)
233 | # define COMPILER_ID "TI"
234 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */
235 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
236 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
237 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
238 |
239 | #elif defined(__CLANG_FUJITSU)
240 | # define COMPILER_ID "FujitsuClang"
241 | # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
242 | # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
243 | # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
244 | # define COMPILER_VERSION_INTERNAL_STR __clang_version__
245 |
246 |
247 | #elif defined(__FUJITSU)
248 | # define COMPILER_ID "Fujitsu"
249 | # if defined(__FCC_version__)
250 | # define COMPILER_VERSION __FCC_version__
251 | # elif defined(__FCC_major__)
252 | # define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
253 | # define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
254 | # define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
255 | # endif
256 | # if defined(__fcc_version)
257 | # define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
258 | # elif defined(__FCC_VERSION)
259 | # define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
260 | # endif
261 |
262 |
263 | #elif defined(__ghs__)
264 | # define COMPILER_ID "GHS"
265 | /* __GHS_VERSION_NUMBER = VVVVRP */
266 | # ifdef __GHS_VERSION_NUMBER
267 | # define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
268 | # define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
269 | # define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
270 | # endif
271 |
272 | #elif defined(__TASKING__)
273 | # define COMPILER_ID "Tasking"
274 | # define COMPILER_VERSION_MAJOR DEC(__VERSION__/1000)
275 | # define COMPILER_VERSION_MINOR DEC(__VERSION__ % 100)
276 | # define COMPILER_VERSION_INTERNAL DEC(__VERSION__)
277 |
278 | #elif defined(__TINYC__)
279 | # define COMPILER_ID "TinyCC"
280 |
281 | #elif defined(__BCC__)
282 | # define COMPILER_ID "Bruce"
283 |
284 | #elif defined(__SCO_VERSION__)
285 | # define COMPILER_ID "SCO"
286 |
287 | #elif defined(__ARMCC_VERSION) && !defined(__clang__)
288 | # define COMPILER_ID "ARMCC"
289 | #if __ARMCC_VERSION >= 1000000
290 | /* __ARMCC_VERSION = VRRPPPP */
291 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
292 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
293 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
294 | #else
295 | /* __ARMCC_VERSION = VRPPPP */
296 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
297 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
298 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
299 | #endif
300 |
301 |
302 | #elif defined(__clang__) && defined(__apple_build_version__)
303 | # define COMPILER_ID "AppleClang"
304 | # if defined(_MSC_VER)
305 | # define SIMULATE_ID "MSVC"
306 | # endif
307 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
308 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
309 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
310 | # if defined(_MSC_VER)
311 | /* _MSC_VER = VVRR */
312 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
313 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
314 | # endif
315 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
316 |
317 | #elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
318 | # define COMPILER_ID "ARMClang"
319 | # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
320 | # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
321 | # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
322 | # define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
323 |
324 | #elif defined(__clang__)
325 | # define COMPILER_ID "Clang"
326 | # if defined(_MSC_VER)
327 | # define SIMULATE_ID "MSVC"
328 | # endif
329 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__)
330 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__)
331 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
332 | # if defined(_MSC_VER)
333 | /* _MSC_VER = VVRR */
334 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
335 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
336 | # endif
337 |
338 | #elif defined(__LCC__) && (defined(__GNUC__) || defined(__GNUG__) || defined(__MCST__))
339 | # define COMPILER_ID "LCC"
340 | # define COMPILER_VERSION_MAJOR DEC(__LCC__ / 100)
341 | # define COMPILER_VERSION_MINOR DEC(__LCC__ % 100)
342 | # if defined(__LCC_MINOR__)
343 | # define COMPILER_VERSION_PATCH DEC(__LCC_MINOR__)
344 | # endif
345 | # if defined(__GNUC__) && defined(__GNUC_MINOR__)
346 | # define SIMULATE_ID "GNU"
347 | # define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
348 | # define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
349 | # if defined(__GNUC_PATCHLEVEL__)
350 | # define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
351 | # endif
352 | # endif
353 |
354 | #elif defined(__GNUC__)
355 | # define COMPILER_ID "GNU"
356 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__)
357 | # if defined(__GNUC_MINOR__)
358 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
359 | # endif
360 | # if defined(__GNUC_PATCHLEVEL__)
361 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
362 | # endif
363 |
364 | #elif defined(_MSC_VER)
365 | # define COMPILER_ID "MSVC"
366 | /* _MSC_VER = VVRR */
367 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
368 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
369 | # if defined(_MSC_FULL_VER)
370 | # if _MSC_VER >= 1400
371 | /* _MSC_FULL_VER = VVRRPPPPP */
372 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
373 | # else
374 | /* _MSC_FULL_VER = VVRRPPPP */
375 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
376 | # endif
377 | # endif
378 | # if defined(_MSC_BUILD)
379 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
380 | # endif
381 |
382 | #elif defined(_ADI_COMPILER)
383 | # define COMPILER_ID "ADSP"
384 | #if defined(__VERSIONNUM__)
385 | /* __VERSIONNUM__ = 0xVVRRPPTT */
386 | # define COMPILER_VERSION_MAJOR DEC(__VERSIONNUM__ >> 24 & 0xFF)
387 | # define COMPILER_VERSION_MINOR DEC(__VERSIONNUM__ >> 16 & 0xFF)
388 | # define COMPILER_VERSION_PATCH DEC(__VERSIONNUM__ >> 8 & 0xFF)
389 | # define COMPILER_VERSION_TWEAK DEC(__VERSIONNUM__ & 0xFF)
390 | #endif
391 |
392 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
393 | # define COMPILER_ID "IAR"
394 | # if defined(__VER__) && defined(__ICCARM__)
395 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
396 | # define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
397 | # define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
398 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
399 | # elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
400 | # define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
401 | # define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
402 | # define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
403 | # define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
404 | # endif
405 |
406 | #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC)
407 | # define COMPILER_ID "SDCC"
408 | # if defined(__SDCC_VERSION_MAJOR)
409 | # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR)
410 | # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR)
411 | # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH)
412 | # else
413 | /* SDCC = VRP */
414 | # define COMPILER_VERSION_MAJOR DEC(SDCC/100)
415 | # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
416 | # define COMPILER_VERSION_PATCH DEC(SDCC % 10)
417 | # endif
418 |
419 |
420 | /* These compilers are either not known or too old to define an
421 | identification macro. Try to identify the platform and guess that
422 | it is the native compiler. */
423 | #elif defined(__hpux) || defined(__hpua)
424 | # define COMPILER_ID "HP"
425 |
426 | #else /* unknown compiler */
427 | # define COMPILER_ID ""
428 | #endif
429 |
430 | /* Construct the string literal in pieces to prevent the source from
431 | getting matched. Store it in a pointer rather than an array
432 | because some compilers will just produce instructions to fill the
433 | array rather than assigning a pointer to a static array. */
434 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
435 | #ifdef SIMULATE_ID
436 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
437 | #endif
438 |
439 | #ifdef __QNXNTO__
440 | char const* qnxnto = "INFO" ":" "qnxnto[]";
441 | #endif
442 |
443 | #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
444 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
445 | #endif
446 |
447 | #define STRINGIFY_HELPER(X) #X
448 | #define STRINGIFY(X) STRINGIFY_HELPER(X)
449 |
450 | /* Identify known platforms by name. */
451 | #if defined(__linux) || defined(__linux__) || defined(linux)
452 | # define PLATFORM_ID "Linux"
453 |
454 | #elif defined(__MSYS__)
455 | # define PLATFORM_ID "MSYS"
456 |
457 | #elif defined(__CYGWIN__)
458 | # define PLATFORM_ID "Cygwin"
459 |
460 | #elif defined(__MINGW32__)
461 | # define PLATFORM_ID "MinGW"
462 |
463 | #elif defined(__APPLE__)
464 | # define PLATFORM_ID "Darwin"
465 |
466 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
467 | # define PLATFORM_ID "Windows"
468 |
469 | #elif defined(__FreeBSD__) || defined(__FreeBSD)
470 | # define PLATFORM_ID "FreeBSD"
471 |
472 | #elif defined(__NetBSD__) || defined(__NetBSD)
473 | # define PLATFORM_ID "NetBSD"
474 |
475 | #elif defined(__OpenBSD__) || defined(__OPENBSD)
476 | # define PLATFORM_ID "OpenBSD"
477 |
478 | #elif defined(__sun) || defined(sun)
479 | # define PLATFORM_ID "SunOS"
480 |
481 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
482 | # define PLATFORM_ID "AIX"
483 |
484 | #elif defined(__hpux) || defined(__hpux__)
485 | # define PLATFORM_ID "HP-UX"
486 |
487 | #elif defined(__HAIKU__)
488 | # define PLATFORM_ID "Haiku"
489 |
490 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
491 | # define PLATFORM_ID "BeOS"
492 |
493 | #elif defined(__QNX__) || defined(__QNXNTO__)
494 | # define PLATFORM_ID "QNX"
495 |
496 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
497 | # define PLATFORM_ID "Tru64"
498 |
499 | #elif defined(__riscos) || defined(__riscos__)
500 | # define PLATFORM_ID "RISCos"
501 |
502 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
503 | # define PLATFORM_ID "SINIX"
504 |
505 | #elif defined(__UNIX_SV__)
506 | # define PLATFORM_ID "UNIX_SV"
507 |
508 | #elif defined(__bsdos__)
509 | # define PLATFORM_ID "BSDOS"
510 |
511 | #elif defined(_MPRAS) || defined(MPRAS)
512 | # define PLATFORM_ID "MP-RAS"
513 |
514 | #elif defined(__osf) || defined(__osf__)
515 | # define PLATFORM_ID "OSF1"
516 |
517 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
518 | # define PLATFORM_ID "SCO_SV"
519 |
520 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
521 | # define PLATFORM_ID "ULTRIX"
522 |
523 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
524 | # define PLATFORM_ID "Xenix"
525 |
526 | #elif defined(__WATCOMC__)
527 | # if defined(__LINUX__)
528 | # define PLATFORM_ID "Linux"
529 |
530 | # elif defined(__DOS__)
531 | # define PLATFORM_ID "DOS"
532 |
533 | # elif defined(__OS2__)
534 | # define PLATFORM_ID "OS2"
535 |
536 | # elif defined(__WINDOWS__)
537 | # define PLATFORM_ID "Windows3x"
538 |
539 | # elif defined(__VXWORKS__)
540 | # define PLATFORM_ID "VxWorks"
541 |
542 | # else /* unknown platform */
543 | # define PLATFORM_ID
544 | # endif
545 |
546 | #elif defined(__INTEGRITY)
547 | # if defined(INT_178B)
548 | # define PLATFORM_ID "Integrity178"
549 |
550 | # else /* regular Integrity */
551 | # define PLATFORM_ID "Integrity"
552 | # endif
553 |
554 | # elif defined(_ADI_COMPILER)
555 | # define PLATFORM_ID "ADSP"
556 |
557 | #else /* unknown platform */
558 | # define PLATFORM_ID
559 |
560 | #endif
561 |
562 | /* For windows compilers MSVC and Intel we can determine
563 | the architecture of the compiler being used. This is because
564 | the compilers do not have flags that can change the architecture,
565 | but rather depend on which compiler is being used
566 | */
567 | #if defined(_WIN32) && defined(_MSC_VER)
568 | # if defined(_M_IA64)
569 | # define ARCHITECTURE_ID "IA64"
570 |
571 | # elif defined(_M_ARM64EC)
572 | # define ARCHITECTURE_ID "ARM64EC"
573 |
574 | # elif defined(_M_X64) || defined(_M_AMD64)
575 | # define ARCHITECTURE_ID "x64"
576 |
577 | # elif defined(_M_IX86)
578 | # define ARCHITECTURE_ID "X86"
579 |
580 | # elif defined(_M_ARM64)
581 | # define ARCHITECTURE_ID "ARM64"
582 |
583 | # elif defined(_M_ARM)
584 | # if _M_ARM == 4
585 | # define ARCHITECTURE_ID "ARMV4I"
586 | # elif _M_ARM == 5
587 | # define ARCHITECTURE_ID "ARMV5I"
588 | # else
589 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
590 | # endif
591 |
592 | # elif defined(_M_MIPS)
593 | # define ARCHITECTURE_ID "MIPS"
594 |
595 | # elif defined(_M_SH)
596 | # define ARCHITECTURE_ID "SHx"
597 |
598 | # else /* unknown architecture */
599 | # define ARCHITECTURE_ID ""
600 | # endif
601 |
602 | #elif defined(__WATCOMC__)
603 | # if defined(_M_I86)
604 | # define ARCHITECTURE_ID "I86"
605 |
606 | # elif defined(_M_IX86)
607 | # define ARCHITECTURE_ID "X86"
608 |
609 | # else /* unknown architecture */
610 | # define ARCHITECTURE_ID ""
611 | # endif
612 |
613 | #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
614 | # if defined(__ICCARM__)
615 | # define ARCHITECTURE_ID "ARM"
616 |
617 | # elif defined(__ICCRX__)
618 | # define ARCHITECTURE_ID "RX"
619 |
620 | # elif defined(__ICCRH850__)
621 | # define ARCHITECTURE_ID "RH850"
622 |
623 | # elif defined(__ICCRL78__)
624 | # define ARCHITECTURE_ID "RL78"
625 |
626 | # elif defined(__ICCRISCV__)
627 | # define ARCHITECTURE_ID "RISCV"
628 |
629 | # elif defined(__ICCAVR__)
630 | # define ARCHITECTURE_ID "AVR"
631 |
632 | # elif defined(__ICC430__)
633 | # define ARCHITECTURE_ID "MSP430"
634 |
635 | # elif defined(__ICCV850__)
636 | # define ARCHITECTURE_ID "V850"
637 |
638 | # elif defined(__ICC8051__)
639 | # define ARCHITECTURE_ID "8051"
640 |
641 | # elif defined(__ICCSTM8__)
642 | # define ARCHITECTURE_ID "STM8"
643 |
644 | # else /* unknown architecture */
645 | # define ARCHITECTURE_ID ""
646 | # endif
647 |
648 | #elif defined(__ghs__)
649 | # if defined(__PPC64__)
650 | # define ARCHITECTURE_ID "PPC64"
651 |
652 | # elif defined(__ppc__)
653 | # define ARCHITECTURE_ID "PPC"
654 |
655 | # elif defined(__ARM__)
656 | # define ARCHITECTURE_ID "ARM"
657 |
658 | # elif defined(__x86_64__)
659 | # define ARCHITECTURE_ID "x64"
660 |
661 | # elif defined(__i386__)
662 | # define ARCHITECTURE_ID "X86"
663 |
664 | # else /* unknown architecture */
665 | # define ARCHITECTURE_ID ""
666 | # endif
667 |
668 | #elif defined(__TI_COMPILER_VERSION__)
669 | # if defined(__TI_ARM__)
670 | # define ARCHITECTURE_ID "ARM"
671 |
672 | # elif defined(__MSP430__)
673 | # define ARCHITECTURE_ID "MSP430"
674 |
675 | # elif defined(__TMS320C28XX__)
676 | # define ARCHITECTURE_ID "TMS320C28x"
677 |
678 | # elif defined(__TMS320C6X__) || defined(_TMS320C6X)
679 | # define ARCHITECTURE_ID "TMS320C6x"
680 |
681 | # else /* unknown architecture */
682 | # define ARCHITECTURE_ID ""
683 | # endif
684 |
685 | # elif defined(__ADSPSHARC__)
686 | # define ARCHITECTURE_ID "SHARC"
687 |
688 | # elif defined(__ADSPBLACKFIN__)
689 | # define ARCHITECTURE_ID "Blackfin"
690 |
691 | #elif defined(__TASKING__)
692 |
693 | # if defined(__CTC__) || defined(__CPTC__)
694 | # define ARCHITECTURE_ID "TriCore"
695 |
696 | # elif defined(__CMCS__)
697 | # define ARCHITECTURE_ID "MCS"
698 |
699 | # elif defined(__CARM__)
700 | # define ARCHITECTURE_ID "ARM"
701 |
702 | # elif defined(__CARC__)
703 | # define ARCHITECTURE_ID "ARC"
704 |
705 | # elif defined(__C51__)
706 | # define ARCHITECTURE_ID "8051"
707 |
708 | # elif defined(__CPCP__)
709 | # define ARCHITECTURE_ID "PCP"
710 |
711 | # else
712 | # define ARCHITECTURE_ID ""
713 | # endif
714 |
715 | #else
716 | # define ARCHITECTURE_ID
717 | #endif
718 |
719 | /* Convert integer to decimal digit literals. */
720 | #define DEC(n) \
721 | ('0' + (((n) / 10000000)%10)), \
722 | ('0' + (((n) / 1000000)%10)), \
723 | ('0' + (((n) / 100000)%10)), \
724 | ('0' + (((n) / 10000)%10)), \
725 | ('0' + (((n) / 1000)%10)), \
726 | ('0' + (((n) / 100)%10)), \
727 | ('0' + (((n) / 10)%10)), \
728 | ('0' + ((n) % 10))
729 |
730 | /* Convert integer to hex digit literals. */
731 | #define HEX(n) \
732 | ('0' + ((n)>>28 & 0xF)), \
733 | ('0' + ((n)>>24 & 0xF)), \
734 | ('0' + ((n)>>20 & 0xF)), \
735 | ('0' + ((n)>>16 & 0xF)), \
736 | ('0' + ((n)>>12 & 0xF)), \
737 | ('0' + ((n)>>8 & 0xF)), \
738 | ('0' + ((n)>>4 & 0xF)), \
739 | ('0' + ((n) & 0xF))
740 |
741 | /* Construct a string literal encoding the version number. */
742 | #ifdef COMPILER_VERSION
743 | char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
744 |
745 | /* Construct a string literal encoding the version number components. */
746 | #elif defined(COMPILER_VERSION_MAJOR)
747 | char const info_version[] = {
748 | 'I', 'N', 'F', 'O', ':',
749 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
750 | COMPILER_VERSION_MAJOR,
751 | # ifdef COMPILER_VERSION_MINOR
752 | '.', COMPILER_VERSION_MINOR,
753 | # ifdef COMPILER_VERSION_PATCH
754 | '.', COMPILER_VERSION_PATCH,
755 | # ifdef COMPILER_VERSION_TWEAK
756 | '.', COMPILER_VERSION_TWEAK,
757 | # endif
758 | # endif
759 | # endif
760 | ']','\0'};
761 | #endif
762 |
763 | /* Construct a string literal encoding the internal version number. */
764 | #ifdef COMPILER_VERSION_INTERNAL
765 | char const info_version_internal[] = {
766 | 'I', 'N', 'F', 'O', ':',
767 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
768 | 'i','n','t','e','r','n','a','l','[',
769 | COMPILER_VERSION_INTERNAL,']','\0'};
770 | #elif defined(COMPILER_VERSION_INTERNAL_STR)
771 | char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
772 | #endif
773 |
774 | /* Construct a string literal encoding the version number components. */
775 | #ifdef SIMULATE_VERSION_MAJOR
776 | char const info_simulate_version[] = {
777 | 'I', 'N', 'F', 'O', ':',
778 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
779 | SIMULATE_VERSION_MAJOR,
780 | # ifdef SIMULATE_VERSION_MINOR
781 | '.', SIMULATE_VERSION_MINOR,
782 | # ifdef SIMULATE_VERSION_PATCH
783 | '.', SIMULATE_VERSION_PATCH,
784 | # ifdef SIMULATE_VERSION_TWEAK
785 | '.', SIMULATE_VERSION_TWEAK,
786 | # endif
787 | # endif
788 | # endif
789 | ']','\0'};
790 | #endif
791 |
792 | /* Construct the string literal in pieces to prevent the source from
793 | getting matched. Store it in a pointer rather than an array
794 | because some compilers will just produce instructions to fill the
795 | array rather than assigning a pointer to a static array. */
796 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
797 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
798 |
799 |
800 |
801 | #if !defined(__STDC__) && !defined(__clang__)
802 | # if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__)
803 | # define C_VERSION "90"
804 | # else
805 | # define C_VERSION
806 | # endif
807 | #elif __STDC_VERSION__ > 201710L
808 | # define C_VERSION "23"
809 | #elif __STDC_VERSION__ >= 201710L
810 | # define C_VERSION "17"
811 | #elif __STDC_VERSION__ >= 201000L
812 | # define C_VERSION "11"
813 | #elif __STDC_VERSION__ >= 199901L
814 | # define C_VERSION "99"
815 | #else
816 | # define C_VERSION "90"
817 | #endif
818 | const char* info_language_standard_default =
819 | "INFO" ":" "standard_default[" C_VERSION "]";
820 |
821 | const char* info_language_extensions_default = "INFO" ":" "extensions_default["
822 | #if (defined(__clang__) || defined(__GNUC__) || defined(__xlC__) || \
823 | defined(__TI_COMPILER_VERSION__)) && \
824 | !defined(__STRICT_ANSI__)
825 | "ON"
826 | #else
827 | "OFF"
828 | #endif
829 | "]";
830 |
831 | /*--------------------------------------------------------------------------*/
832 |
833 | #ifdef ID_VOID_MAIN
834 | void main() {}
835 | #else
836 | # if defined(__CLASSIC_C__)
837 | int main(argc, argv) int argc; char *argv[];
838 | # else
839 | int main(int argc, char* argv[])
840 | # endif
841 | {
842 | int require = 0;
843 | require += info_compiler[argc];
844 | require += info_platform[argc];
845 | require += info_arch[argc];
846 | #ifdef COMPILER_VERSION_MAJOR
847 | require += info_version[argc];
848 | #endif
849 | #ifdef COMPILER_VERSION_INTERNAL
850 | require += info_version_internal[argc];
851 | #endif
852 | #ifdef SIMULATE_ID
853 | require += info_simulate[argc];
854 | #endif
855 | #ifdef SIMULATE_VERSION_MAJOR
856 | require += info_simulate_version[argc];
857 | #endif
858 | #if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
859 | require += info_cray[argc];
860 | #endif
861 | require += info_language_standard_default[argc];
862 | require += info_language_extensions_default[argc];
863 | (void)argv;
864 | return require;
865 | }
866 | #endif
867 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/CMakeConfigureLog.yaml:
--------------------------------------------------------------------------------
1 |
2 | ---
3 | events:
4 | -
5 | kind: "message-v1"
6 | backtrace:
7 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineSystem.cmake:204 (message)"
8 | - "CMakeLists.txt:2 (project)"
9 | message: |
10 | The system is: Darwin - 21.6.0 - x86_64
11 | -
12 | kind: "message-v1"
13 | backtrace:
14 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
15 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
16 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)"
17 | - "CMakeLists.txt:2 (project)"
18 | message: |
19 | Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
20 | Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
21 | Build flags:
22 | Id flags:
23 |
24 | The output was:
25 | 1
26 | ld: library not found for -lSystem
27 | clang: error: linker command failed with exit code 1 (use -v to see invocation)
28 |
29 |
30 | -
31 | kind: "message-v1"
32 | backtrace:
33 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:17 (message)"
34 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:64 (__determine_compiler_id_test)"
35 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCCompiler.cmake:123 (CMAKE_DETERMINE_COMPILER_ID)"
36 | - "CMakeLists.txt:2 (project)"
37 | message: |
38 | Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
39 | Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
40 | Build flags:
41 | Id flags: -c
42 |
43 | The output was:
44 | 0
45 |
46 |
47 | Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "CMakeCCompilerId.o"
48 |
49 | The C compiler identification is AppleClang, found in:
50 | /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.o
51 |
52 | -
53 | kind: "try_compile-v1"
54 | backtrace:
55 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerABI.cmake:57 (try_compile)"
56 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
57 | - "CMakeLists.txt:2 (project)"
58 | checks:
59 | - "Detecting C compiler ABI info"
60 | directories:
61 | source: "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX"
62 | binary: "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX"
63 | cmakeVariables:
64 | CMAKE_C_FLAGS: ""
65 | CMAKE_C_FLAGS_DEBUG: "-g"
66 | CMAKE_EXE_LINKER_FLAGS: ""
67 | CMAKE_OSX_ARCHITECTURES: ""
68 | CMAKE_OSX_DEPLOYMENT_TARGET: "12.6"
69 | CMAKE_OSX_SYSROOT: "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk"
70 | buildResult:
71 | variable: "CMAKE_C_ABI_COMPILED"
72 | cached: true
73 | stdout: |
74 | Change Dir: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX
75 |
76 | Run Build Command(s):/Applications/CLion.app/Contents/bin/ninja/mac/ninja -v cmTC_ccf1f && [1/2] /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -fcolor-diagnostics -v -Wl,-v -MD -MT CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -c /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCCompilerABI.c
77 | Apple clang version 14.0.0 (clang-1400.0.29.202)
78 | Target: x86_64-apple-darwin21.6.0
79 | Thread model: posix
80 | InstalledDir: /Library/Developer/CommandLineTools/usr/bin
81 | clang: warning: -Wl,-v: 'linker' input unused [-Wunused-command-line-argument]
82 | "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx12.6.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fno-strict-return -fno-rounding-math -funwind-tables=2 -target-sdk-version=13.1 -fvisibility-inlines-hidden-static-local-var -target-cpu penryn -tune-cpu generic -debugger-tuning=lldb -target-linker-version 820.1 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0 -dependency-file CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o.d -skip-unused-modulemap-deps -MT CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -sys-header-deps -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -Wno-cast-function-type -Wno-bitwise-instead-of-logical -fdebug-compilation-dir=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX -ferror-limit 19 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fmax-type-align=16 -fcommon -fcolor-diagnostics -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -x c /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCCompilerABI.c
83 | clang -cc1 version 14.0.0 (clang-1400.0.29.202) default target x86_64-apple-darwin21.6.0
84 | ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/local/include"
85 | ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/Library/Frameworks"
86 | #include "..." search starts here:
87 | #include <...> search starts here:
88 | /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include
89 | /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include
90 | /Library/Developer/CommandLineTools/usr/include
91 | /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks (framework directory)
92 | End of search list.
93 | [2/2] : && /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -v -Wl,-v CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -o cmTC_ccf1f && :
94 | Apple clang version 14.0.0 (clang-1400.0.29.202)
95 | Target: x86_64-apple-darwin21.6.0
96 | Thread model: posix
97 | InstalledDir: /Library/Developer/CommandLineTools/usr/bin
98 | "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 12.6.0 13.1 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -o cmTC_ccf1f -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a
99 | @(#)PROGRAM:ld PROJECT:ld64-820.1
100 | BUILD 20:07:01 Nov 7 2022
101 | configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em
102 | Library search paths:
103 | /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib
104 | Framework search paths:
105 | /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/
106 |
107 | exitCode: 0
108 | -
109 | kind: "message-v1"
110 | backtrace:
111 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerABI.cmake:127 (message)"
112 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
113 | - "CMakeLists.txt:2 (project)"
114 | message: |
115 | Parsed C implicit include dir info: rv=done
116 | found start of include info
117 | found start of implicit include info
118 | add: [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include]
119 | add: [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include]
120 | add: [/Library/Developer/CommandLineTools/usr/include]
121 | end of search list found
122 | collapse include dir [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include] ==> [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include]
123 | collapse include dir [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include]
124 | collapse include dir [/Library/Developer/CommandLineTools/usr/include] ==> [/Library/Developer/CommandLineTools/usr/include]
125 | implicit include dirs: [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include;/Library/Developer/CommandLineTools/usr/include]
126 |
127 |
128 | -
129 | kind: "message-v1"
130 | backtrace:
131 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeDetermineCompilerABI.cmake:152 (message)"
132 | - "/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)"
133 | - "CMakeLists.txt:2 (project)"
134 | message: |
135 | Parsed C implicit link information:
136 | link line regex: [^( *|.*[/\\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\\]+-)?ld|collect2)[^/\\]*( |$)]
137 | ignore line: [Change Dir: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX]
138 | ignore line: []
139 | ignore line: [Run Build Command(s):/Applications/CLion.app/Contents/bin/ninja/mac/ninja -v cmTC_ccf1f && [1/2] /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -fcolor-diagnostics -v -Wl -v -MD -MT CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -MF CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o.d -o CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -c /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCCompilerABI.c]
140 | ignore line: [Apple clang version 14.0.0 (clang-1400.0.29.202)]
141 | ignore line: [Target: x86_64-apple-darwin21.6.0]
142 | ignore line: [Thread model: posix]
143 | ignore line: [InstalledDir: /Library/Developer/CommandLineTools/usr/bin]
144 | ignore line: [clang: warning: -Wl -v: 'linker' input unused [-Wunused-command-line-argument]]
145 | ignore line: [ "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx12.6.0 -Wundef-prefix=TARGET_OS_ -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name CMakeCCompilerABI.c -mrelocation-model pic -pic-level 2 -mframe-pointer=all -fno-strict-return -fno-rounding-math -funwind-tables=2 -target-sdk-version=13.1 -fvisibility-inlines-hidden-static-local-var -target-cpu penryn -tune-cpu generic -debugger-tuning=lldb -target-linker-version 820.1 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0 -dependency-file CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o.d -skip-unused-modulemap-deps -MT CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -sys-header-deps -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -Wno-elaborated-enum-base -Wno-reserved-identifier -Wno-gnu-folding-constant -Wno-cast-function-type -Wno-bitwise-instead-of-logical -fdebug-compilation-dir=/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/CMakeScratch/TryCompile-tV9IcX -ferror-limit 19 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fmax-type-align=16 -fcommon -fcolor-diagnostics -clang-vendor-feature=+messageToSelfInClassMethodIdReturnType -clang-vendor-feature=+disableInferNewAvailabilityFromInit -clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation -fno-odr-hash-protocols -clang-vendor-feature=+enableAggressiveVLAFolding -clang-vendor-feature=+revert09abecef7bbf -clang-vendor-feature=+thisNoAlignAttr -clang-vendor-feature=+thisNoNullAttr -mllvm -disable-aligned-alloc-awareness=1 -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -x c /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCCompilerABI.c]
146 | ignore line: [clang -cc1 version 14.0.0 (clang-1400.0.29.202) default target x86_64-apple-darwin21.6.0]
147 | ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/local/include"]
148 | ignore line: [ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/Library/Frameworks"]
149 | ignore line: [#include "..." search starts here:]
150 | ignore line: [#include <...> search starts here:]
151 | ignore line: [ /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include]
152 | ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include]
153 | ignore line: [ /Library/Developer/CommandLineTools/usr/include]
154 | ignore line: [ /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks (framework directory)]
155 | ignore line: [End of search list.]
156 | ignore line: [[2/2] : && /Library/Developer/CommandLineTools/usr/bin/cc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -Wl -search_paths_first -Wl -headerpad_max_install_names -v -Wl -v CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -o cmTC_ccf1f && :]
157 | ignore line: [Apple clang version 14.0.0 (clang-1400.0.29.202)]
158 | ignore line: [Target: x86_64-apple-darwin21.6.0]
159 | ignore line: [Thread model: posix]
160 | ignore line: [InstalledDir: /Library/Developer/CommandLineTools/usr/bin]
161 | link line: [ "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -dynamic -arch x86_64 -platform_version macos 12.6.0 13.1 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -o cmTC_ccf1f -search_paths_first -headerpad_max_install_names -v CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a]
162 | arg [/Library/Developer/CommandLineTools/usr/bin/ld] ==> ignore
163 | arg [-demangle] ==> ignore
164 | arg [-lto_library] ==> ignore, skip following value
165 | arg [/Library/Developer/CommandLineTools/usr/lib/libLTO.dylib] ==> skip value of -lto_library
166 | arg [-dynamic] ==> ignore
167 | arg [-arch] ==> ignore
168 | arg [x86_64] ==> ignore
169 | arg [-platform_version] ==> ignore
170 | arg [macos] ==> ignore
171 | arg [12.6.0] ==> ignore
172 | arg [13.1] ==> ignore
173 | arg [-syslibroot] ==> ignore
174 | arg [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk] ==> ignore
175 | arg [-o] ==> ignore
176 | arg [cmTC_ccf1f] ==> ignore
177 | arg [-search_paths_first] ==> ignore
178 | arg [-headerpad_max_install_names] ==> ignore
179 | arg [-v] ==> ignore
180 | arg [CMakeFiles/cmTC_ccf1f.dir/CMakeCCompilerABI.c.o] ==> ignore
181 | arg [-lSystem] ==> lib [System]
182 | arg [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a] ==> lib [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a]
183 | Library search paths: [;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib]
184 | Framework search paths: [;/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/]
185 | remove lib [System]
186 | remove lib [/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/lib/darwin/libclang_rt.osx.a]
187 | collapse library dir [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib]
188 | collapse framework dir [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/] ==> [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks]
189 | implicit libs: []
190 | implicit objs: []
191 | implicit dirs: [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/lib]
192 | implicit fwks: [/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/Frameworks]
193 |
194 |
195 | ...
196 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/a.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/a.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/b.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/b.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/c.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/c.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/d.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/d.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/e.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/e.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/f.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/f.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/g.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/g.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/h.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/h.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/i.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/i.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/j.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/j.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/k.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/k.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/l.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/l.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/m.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/m.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/o.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/o.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/ppp.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/ppp.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/sample.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/sample.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/testing.c.o:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir/testing.c.o
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/TargetDirectories.txt:
--------------------------------------------------------------------------------
1 | /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/Introduction_to_Programming.dir
2 | /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/edit_cache.dir
3 | /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/CMakeFiles/rebuild_cache.dir
4 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/clion-Debug-log.txt:
--------------------------------------------------------------------------------
1 | /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/Applications/CLion.app/Contents/bin/ninja/mac/ninja -G Ninja -S /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming -B /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
2 | -- Configuring done (0.2s)
3 | -- Generating done (0.0s)
4 | -- Build files have been written to: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
5 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/clion-environment.txt:
--------------------------------------------------------------------------------
1 | ToolSet: 1.0 (local)Options:
2 |
3 | Options:-DCMAKE_MAKE_PROGRAM=/Applications/CLion.app/Contents/bin/ninja/mac/ninja
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/cmake.check_cache:
--------------------------------------------------------------------------------
1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file
2 |
--------------------------------------------------------------------------------
/cmake-build-debug/CMakeFiles/rules.ninja:
--------------------------------------------------------------------------------
1 | # CMAKE generated file: DO NOT EDIT!
2 | # Generated by "Ninja" Generator, CMake Version 3.26
3 |
4 | # This file contains all the rules used to get the outputs files
5 | # built from the input files.
6 | # It is included in the main 'build.ninja'.
7 |
8 | # =============================================================================
9 | # Project: Introduction_to_Programming
10 | # Configurations: Debug
11 | # =============================================================================
12 | # =============================================================================
13 |
14 | #############################################
15 | # Rule for compiling C files.
16 |
17 | rule C_COMPILER__Introduction_to_Programming_unscanned_Debug
18 | depfile = $DEP_FILE
19 | deps = gcc
20 | command = /Library/Developer/CommandLineTools/usr/bin/cc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
21 | description = Building C object $out
22 |
23 |
24 | #############################################
25 | # Rule for linking C executable.
26 |
27 | rule C_EXECUTABLE_LINKER__Introduction_to_Programming_Debug
28 | command = $PRE_LINK && /Library/Developer/CommandLineTools/usr/bin/cc $FLAGS -Wl,-search_paths_first -Wl,-headerpad_max_install_names $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD
29 | description = Linking C executable $TARGET_FILE
30 | restat = $RESTAT
31 |
32 |
33 | #############################################
34 | # Rule for running custom commands.
35 |
36 | rule CUSTOM_COMMAND
37 | command = $COMMAND
38 | description = $DESC
39 |
40 |
41 | #############################################
42 | # Rule for re-running cmake.
43 |
44 | rule RERUN_CMAKE
45 | command = /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --regenerate-during-build -S/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming -B/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
46 | description = Re-running CMake...
47 | generator = 1
48 |
49 |
50 | #############################################
51 | # Rule for cleaning all built files.
52 |
53 | rule CLEAN
54 | command = /Applications/CLion.app/Contents/bin/ninja/mac/ninja $FILE_ARG -t clean $TARGETS
55 | description = Cleaning all built files...
56 |
57 |
58 | #############################################
59 | # Rule for printing all primary targets available.
60 |
61 | rule HELP
62 | command = /Applications/CLion.app/Contents/bin/ninja/mac/ninja -t targets
63 | description = All primary targets available:
64 |
65 |
--------------------------------------------------------------------------------
/cmake-build-debug/Introduction_to_Programming:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/Introduction_to_Programming
--------------------------------------------------------------------------------
/cmake-build-debug/Testing/Temporary/LastTest.log:
--------------------------------------------------------------------------------
1 | Start testing: Nov 23 16:42 IST
2 | ----------------------------------------------------------
3 | End testing: Nov 23 16:42 IST
4 |
--------------------------------------------------------------------------------
/cmake-build-debug/build.ninja:
--------------------------------------------------------------------------------
1 | # CMAKE generated file: DO NOT EDIT!
2 | # Generated by "Ninja" Generator, CMake Version 3.26
3 |
4 | # This file contains all the build statements describing the
5 | # compilation DAG.
6 |
7 | # =============================================================================
8 | # Write statements declared in CMakeLists.txt:
9 | #
10 | # Which is the root file.
11 | # =============================================================================
12 |
13 | # =============================================================================
14 | # Project: Introduction_to_Programming
15 | # Configurations: Debug
16 | # =============================================================================
17 |
18 | #############################################
19 | # Minimal version of Ninja required by this file
20 |
21 | ninja_required_version = 1.5
22 |
23 |
24 | #############################################
25 | # Set configuration variable for custom commands.
26 |
27 | CONFIGURATION = Debug
28 | # =============================================================================
29 | # Include auxiliary files.
30 |
31 |
32 | #############################################
33 | # Include rules file.
34 |
35 | include CMakeFiles/rules.ninja
36 |
37 | # =============================================================================
38 |
39 | #############################################
40 | # Logical path to working directory; prefix for absolute paths.
41 |
42 | cmake_ninja_workdir = /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/
43 | # =============================================================================
44 | # Object build statements for EXECUTABLE target Introduction_to_Programming
45 |
46 |
47 | #############################################
48 | # Order-only phony target for Introduction_to_Programming
49 |
50 | build cmake_object_order_depends_target_Introduction_to_Programming: phony || CMakeFiles/Introduction_to_Programming.dir
51 |
52 | build CMakeFiles/Introduction_to_Programming.dir/sample.c.o: C_COMPILER__Introduction_to_Programming_unscanned_Debug /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/sample.c || cmake_object_order_depends_target_Introduction_to_Programming
53 | DEP_FILE = CMakeFiles/Introduction_to_Programming.dir/sample.c.o.d
54 | FLAGS = -g -std=gnu11 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -fcolor-diagnostics
55 | INCLUDES = -I/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/.
56 | OBJECT_DIR = CMakeFiles/Introduction_to_Programming.dir
57 | OBJECT_FILE_DIR = CMakeFiles/Introduction_to_Programming.dir
58 |
59 |
60 | # =============================================================================
61 | # Link build statements for EXECUTABLE target Introduction_to_Programming
62 |
63 |
64 | #############################################
65 | # Link the executable Introduction_to_Programming
66 |
67 | build Introduction_to_Programming: C_EXECUTABLE_LINKER__Introduction_to_Programming_Debug CMakeFiles/Introduction_to_Programming.dir/sample.c.o
68 | FLAGS = -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6
69 | OBJECT_DIR = CMakeFiles/Introduction_to_Programming.dir
70 | POST_BUILD = :
71 | PRE_LINK = :
72 | TARGET_FILE = Introduction_to_Programming
73 | TARGET_PDB = Introduction_to_Programming.dbg
74 |
75 |
76 | #############################################
77 | # Utility command for edit_cache
78 |
79 | build CMakeFiles/edit_cache.util: CUSTOM_COMMAND
80 | COMMAND = cd /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug && /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
81 | DESC = No interactive CMake dialog available...
82 | restat = 1
83 |
84 | build edit_cache: phony CMakeFiles/edit_cache.util
85 |
86 |
87 | #############################################
88 | # Utility command for rebuild_cache
89 |
90 | build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND
91 | COMMAND = cd /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug && /Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake --regenerate-during-build -S/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming -B/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
92 | DESC = Running CMake to regenerate build system...
93 | pool = console
94 | restat = 1
95 |
96 | build rebuild_cache: phony CMakeFiles/rebuild_cache.util
97 |
98 | # =============================================================================
99 | # Target aliases.
100 |
101 | # =============================================================================
102 | # Folder targets.
103 |
104 | # =============================================================================
105 |
106 | #############################################
107 | # Folder: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug
108 |
109 | build all: phony Introduction_to_Programming
110 |
111 | # =============================================================================
112 | # Built-in targets
113 |
114 |
115 | #############################################
116 | # Re-run CMake if any of its inputs changed.
117 |
118 | build build.ninja: RERUN_CMAKE | /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCommonLanguageInclude.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeGenericSystem.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeInitializeConfigs.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeLanguageInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInitialize.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/AppleClang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/Clang.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/GNU.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-AppleClang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin-Initialize.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/UnixPaths.cmake /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/CMakeLists.txt CMakeCache.txt CMakeFiles/3.26.4/CMakeCCompiler.cmake CMakeFiles/3.26.4/CMakeSystem.cmake
119 | pool = console
120 |
121 |
122 | #############################################
123 | # A missing CMake input file is not an error.
124 |
125 | build /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeCommonLanguageInclude.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeGenericSystem.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeInitializeConfigs.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeLanguageInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInformation.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/CMakeSystemSpecificInitialize.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/AppleClang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/CMakeCommonCompilerMacros.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/Clang.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Compiler/GNU.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-AppleClang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang-C.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Apple-Clang.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin-Initialize.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/Darwin.cmake /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.26/Modules/Platform/UnixPaths.cmake /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/CMakeLists.txt CMakeCache.txt CMakeFiles/3.26.4/CMakeCCompiler.cmake CMakeFiles/3.26.4/CMakeSystem.cmake: phony
126 |
127 |
128 | #############################################
129 | # Clean all the built files.
130 |
131 | build clean: CLEAN
132 |
133 |
134 | #############################################
135 | # Print all primary targets available.
136 |
137 | build help: HELP
138 |
139 |
140 | #############################################
141 | # Make the all target the default.
142 |
143 | default all
144 |
--------------------------------------------------------------------------------
/cmake-build-debug/cmake_install.cmake:
--------------------------------------------------------------------------------
1 | # Install script for directory: /Users/prabhatdas/Documents/GitHub/Introduction-to-Programming
2 |
3 | # Set the install prefix
4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX)
5 | set(CMAKE_INSTALL_PREFIX "/usr/local")
6 | endif()
7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
8 |
9 | # Set the install configuration name.
10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
11 | if(BUILD_TYPE)
12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
14 | else()
15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug")
16 | endif()
17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
18 | endif()
19 |
20 | # Set the component getting installed.
21 | if(NOT CMAKE_INSTALL_COMPONENT)
22 | if(COMPONENT)
23 | message(STATUS "Install component: \"${COMPONENT}\"")
24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
25 | else()
26 | set(CMAKE_INSTALL_COMPONENT)
27 | endif()
28 | endif()
29 |
30 | # Is this installation the result of a crosscompile?
31 | if(NOT DEFINED CMAKE_CROSSCOMPILING)
32 | set(CMAKE_CROSSCOMPILING "FALSE")
33 | endif()
34 |
35 | # Set default install directory permissions.
36 | if(NOT DEFINED CMAKE_OBJDUMP)
37 | set(CMAKE_OBJDUMP "/Library/Developer/CommandLineTools/usr/bin/objdump")
38 | endif()
39 |
40 | if(CMAKE_INSTALL_COMPONENT)
41 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
42 | else()
43 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
44 | endif()
45 |
46 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
47 | "${CMAKE_INSTALL_MANIFEST_FILES}")
48 | file(WRITE "/Users/prabhatdas/Documents/GitHub/Introduction-to-Programming/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}"
49 | "${CMAKE_INSTALL_MANIFEST_CONTENT}")
50 |
--------------------------------------------------------------------------------
/cmake-build-debug/sample.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/sample.txt
--------------------------------------------------------------------------------
/cmake-build-debug/sample.txt
:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/cmake-build-debug/sample.txt
--------------------------------------------------------------------------------
/sample:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/prabhatdash/Introduction-to-Programming/1eccf54540bd58784d881142b5b8236b1cc039c0/sample
--------------------------------------------------------------------------------
/sample.c:
--------------------------------------------------------------------------------
1 | #include
2 |
3 | int top=-1;
4 | int data[4];
5 |
6 | void push(int element){
7 | top++;
8 | data[top]=element;
9 | }
10 | void pop(){
11 | top--;
12 | }
13 |
14 | int main(){
15 | push(5);
16 | push(10);
17 | push(12);
18 | push(15);
19 |
20 | pop();
21 |
22 | for(int i=0;i<=top;i++){
23 | printf("%d ",data[i]);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------