Solution for Exercise 23-9
ex2309
#include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { if(unlink("wambooli") == -1) { puts("I just can't kill that file"); exit(1); } puts("File killed"); return(0); }
Notes
* If you don't copy the wambooli
file to the proper folder for this project in Code::Blocks, then the program fails.
Copyright © 1997-2024 by QPBC.
All rights reserved