rot1 #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "rot1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
je sais pas ce que je fais
J'ai pas lu le code utile mais t'as laisse des printfs
@ -8,4 +8,8 @@ void encrypt(char *file, unsigned long int offset, unsigned long int size)
file[offset + i] = file[offset + i] - 1;
++i;
}
printf("\nENCRYPTION : \n");
use ft_printf (4 lines)
@ -9,3 +9,3 @@
if (fd < 0)
{
ft_printf("Error: Failed to open \'%s\'\n", woody->file_path);
printf("Error: Failed to open \'%s\'\n", woody->file_path);
use ft_printf
@ -16,3 +16,3 @@
{
close(fd);
ft_printf("Error: Failed to read file offset \'%s\'\n", woody->file_path);
printf("Error: Failed to read file offset \'%s\'\n", woody->file_path);
use ft_printf
@ -24,3 +24,3 @@
{
close(fd);
ft_printf("Error: Failed to map file \'%s\'\n", woody->file_path);
printf("Error: Failed to map file \'%s\'\n", woody->file_path);
use ft_printf
@ -10,3 +10,3 @@
int fd = open(path, O_CREAT | O_WRONLY | O_TRUNC, 0755);
if (fd == -1) {
ft_printf("Error: Failed to create new file \'%s\'\n", path);
printf("Error: Failed to create new file \'%s\'\n", path);
use ft_printf
@ -16,3 +16,3 @@
if (write(fd, file, size) == -1) {
close(fd);
ft_printf("Error: Failed to write new file \'%s\'\n", path);
printf("Error: Failed to write new file \'%s\'\n", path);
use ft_printf
@ -21,3 +21,3 @@
if (close(fd) == -1) {
ft_printf("Error: Failed to close new file \'%s\'\n", path);
printf("Error: Failed to close new file \'%s\'\n", path);
use ft_printf
@ -177,3 +160,3 @@
if (!woody->Ehdr || !elf_magic_numbers(woody->file) || woody->Ehdr->e_ident[EI_CLASS] != ELFCLASS64)
{
ft_printf("Error: \'%s\' is not a valid 64-bit ELF file\n", woody->file_path);
printf("Error: \'%s\' is not a valid 64-bit ELF file\n", woody->file_path);
use ft_printf
Bon je merge car il y a trop de commits, je sais pas si ca fonctionne, je vais aussi merge mon commit sans que tu le review et essayer de pauffinner un peu tout ca d'ici a vendredi.
On pourra rediscuter du workflow git pour famine, surtout si le projet est simple ca permettra de faire un truc propre. Si t'es OP bien sur.