Write_bytes() add "const" in prototype

This commit is contained in:
Thomas Bernard
2018-11-14 00:31:06 +01:00
parent 3d2d8ba154
commit fd798c70f0
2 changed files with 3 additions and 3 deletions

View File

@@ -89,7 +89,7 @@ int Read_byte_line(FILE *file, char *line, size_t size)
}
// Ecrit des octets
// Renvoie -1 si OK, 0 en cas d'erreur
int Write_bytes(FILE *file, void *src, size_t size)
int Write_bytes(FILE *file, const void *src, size_t size)
{
return fwrite(src, 1, size, file) == size;
}