1
0

feat: Initial commit

This commit is contained in:
2024-03-22 16:54:05 +01:00
parent 0d9957a125
commit d993185b89
25 changed files with 641 additions and 0 deletions

21
Lab09/conv.c Normal file
View File

@@ -0,0 +1,21 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
int main() {
FILE * fin = fopen("a.txt","r");
int fout = open("test",O_CREAT|O_WRONLY);
float c,x;
int n;
while(fscanf(fin, "%f %f %d\n", &c, &x, &n) == 3) {
write(fout,&c,sizeof(float));
write(fout,&x,sizeof(float));
write(fout,&n,sizeof(int));
puts("ed uno");
}
fclose(fin);
close(fout);
}