Libraries and libc
Enter the support/libc/
folder and go through the practice items below.
If you get stuck, take a sneak peek at the solutions in the solution/libc/
folder.
Inside the
vendetta.c
file make a callopen("a.txt", O_RDWR | O_CREAT, 0644)
to open / create thea.txt
file. Make sure you include all required headers. Check the system call being made.Make an
fopen()
with the proper arguments that gets as close as possible to theopen()
call, i.e. the system call arguments are as close as possible.Inside the
vendetta.c
file make a call tosin()
function (for sine). Computesin(0)
andsin(PI/2)
.