Skip to content

Instantly share code, notes, and snippets.

@Yutsa
Created January 12, 2016 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yutsa/f6a5b28c2b5c70cd7c7f to your computer and use it in GitHub Desktop.
Save Yutsa/f6a5b28c2b5c70cd7c7f to your computer and use it in GitHub Desktop.
fichier = fopen("clients.bin", "rb");
rep_clients curr_rep;
while (fread(&curr_rep, sizeof(curr_rep), 1, fichier) == 1)
{
if (strcmp(nom, curr_rep.nom) == 0 && strcmp(prenom, curr_rep.prenom) == 0)
{
display_client(curr_rep);
}
}
fclose(fichier);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment