Skip to content

Commit

Permalink
stupidity
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckBergen committed Mar 18, 2021
1 parent 20c06b2 commit bb84c3a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prerequisites
*.d

build/
# Object files
*.o
*.ko
Expand Down
2 changes: 1 addition & 1 deletion src/false.c
Original file line number Diff line number Diff line change
@@ -1 +1 @@
int main(){return 0;}
int main(){return 1;}
12 changes: 12 additions & 0 deletions src/mv.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>
int main(int argc, char **argv){
char fed;
FILE *fp, *fp2;
fp = fopen(argv[1], "r");
fp2 = fopen(argv[2], "w");
while((fed=fgetc(fp)) != EOF )
fputc(fed, fp2);
fclose(fp2);
int after=remove(argv[1]);
return(0);
}

0 comments on commit bb84c3a

Please sign in to comment.