Split a line to comply with the Norm
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 24 Oct 2023 10:12:54 +0000 (12:12 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Tue, 24 Oct 2023 10:12:54 +0000 (12:12 +0200)
src/main.c

index da1fa1cc28bbdf5280867dc584804536f37eb0c5..244e9bcd897989a23fe81452b53e96ec2976c9bd 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/10/12 14:52:24 by ljiriste          #+#    #+#             */
-/*   Updated: 2023/10/13 15:36:37 by ljiriste         ###   ########.fr       */
+/*   Updated: 2023/10/24 12:10:34 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -34,6 +34,7 @@ int   my_open(const char *fname)
        char    *path;
 
        path = ft_strdup(TEST_DIR);
+
        ft_strncat_alloc(&path, fname, ft_strlen(fname));
        fd = open(path, O_RDONLY);
        free(path);
@@ -56,7 +57,8 @@ int   create_res_file(const char *fname)
 
        path = ft_strdup(RESULT_DIR);
        ft_strncat_alloc(&path, fname, ft_strlen(fname));
-       fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
+       fd = open(path, O_WRONLY | O_CREAT | O_TRUNC,
+                       S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
        free(path);
        return (fd);
 }