\doxysection{src/disk.c File Reference}
\hypertarget{disk_8c}{}\label{disk_8c}\index{src/disk.c@{src/disk.c}}
{\ttfamily \#include "{}disk.\+h"{}}\newline
{\ttfamily \#include "{}struct.\+h"{}}\newline
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$unistd.\+h$>$}\newline
Include dependency graph for disk.\+c\+:
% FIG 0
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{structdisk}{disk}} \mbox{\hyperlink{disk_8c_a7eb10c7006ff648d851b15f24e4305c3}{create\+\_\+disk}} ()
\begin{DoxyCompactList}\small\item\em Créer un fichier "{}disk"{} de taille MAX\+\_\+\+BYTES\+\_\+\+PER\+\_\+\+BLOC \texorpdfstring{$\ast$}{*} MAX\+\_\+\+BLOCS, renvoi ce disque. \end{DoxyCompactList}\item 
\mbox{\hyperlink{structdisk}{disk}} \mbox{\hyperlink{disk_8c_a0410aa30c92de7cca42080e61d4dcd91}{open\+\_\+disk}} (char \texorpdfstring{$\ast$}{*}filename)
\begin{DoxyCompactList}\small\item\em Si un fichier filename existe, alors on le lit et le stocke en mémoire. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\Hypertarget{disk_8c_a7eb10c7006ff648d851b15f24e4305c3}\label{disk_8c_a7eb10c7006ff648d851b15f24e4305c3} 
\index{disk.c@{disk.c}!create\_disk@{create\_disk}}
\index{create\_disk@{create\_disk}!disk.c@{disk.c}}
\doxysubsubsection{\texorpdfstring{create\_disk()}{create\_disk()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structdisk}{disk}} create\+\_\+disk (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Créer un fichier "{}disk"{} de taille MAX\+\_\+\+BYTES\+\_\+\+PER\+\_\+\+BLOC \texorpdfstring{$\ast$}{*} MAX\+\_\+\+BLOCS, renvoi ce disque. 

\begin{DoxyReturn}{Returns}
Le disque créé 
\end{DoxyReturn}
\Hypertarget{disk_8c_a0410aa30c92de7cca42080e61d4dcd91}\label{disk_8c_a0410aa30c92de7cca42080e61d4dcd91} 
\index{disk.c@{disk.c}!open\_disk@{open\_disk}}
\index{open\_disk@{open\_disk}!disk.c@{disk.c}}
\doxysubsubsection{\texorpdfstring{open\_disk()}{open\_disk()}}
{\footnotesize\ttfamily \mbox{\hyperlink{structdisk}{disk}} open\+\_\+disk (\begin{DoxyParamCaption}\item[{char \texorpdfstring{$\ast$}{*}}]{filename }\end{DoxyParamCaption})}



Si un fichier filename existe, alors on le lit et le stocke en mémoire. 


\begin{DoxyParams}{Parameters}
{\em char} & \texorpdfstring{$\ast$}{*}filename Le nom du fichier à lire \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Le disque lu 
\end{DoxyReturn}
