Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
main.out: main
./main | tee main.out

main: main.o get_student_id.o
cc -o main main.o get_student_id.o

main.o: main.c
cc -c main.c

get_student_id.o: get_student_id.c
cc -c get_student_id.c
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CS305_FINAL
Contributors:
Tayyaba Shaheen
ADD YOUR NAME HERE
Travian Lenox
Binary file added Screenshot 2024-05-07 140459.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion get_student_id.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
int get_student_id(void){
return 3331212;
return 6258949;
}
6 changes: 6 additions & 0 deletions main.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This is foo() source file foo.c
This is bar() source file bar.c
This is bar() source file bar.c
This is baz() source file baz.c
Return value in main from foo: 15
Return value in main from bar: 5