From 78489f05d8365b9c208701a397b5d40d1f3380b5 Mon Sep 17 00:00:00 2001 From: name Date: Thu, 12 Dec 2019 13:41:52 +0100 Subject: [PATCH] Florian - Add Lecture Bit --- gestion_des_fichiers/gestion_fichiers.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gestion_des_fichiers/gestion_fichiers.c b/gestion_des_fichiers/gestion_fichiers.c index bd20a99..7cfa803 100644 --- a/gestion_des_fichiers/gestion_fichiers.c +++ b/gestion_des_fichiers/gestion_fichiers.c @@ -61,6 +61,19 @@ void Ec_Bit(Bin_file *output,char bit) } +void Lec_Bit (Bin_file*input) +{ + char bit ; + + if (input->record_length = 0) + { + fread (input->record,BLOCK_SIZE,1,input_file); + input->record_length = nb_octets ; + input->i_record = 0 ; + + } +} + int main() { Bin_file *p;