eg0rmaffin

main

Jul 14th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.21 KB | None | 0 0
  1. /* ************************************************************************** */
  2. /*                                                                            */
  3. /*                                                        :::      ::::::::   */
  4. /*   main.c                                             :+:      :+:    :+:   */
  5. /*                                                    +:+ +:+         +:+     */
  6. /*   By: squiana <[email protected]>                     +#+  +:+       +#+        */
  7. /*                                                +#+#+#+#+#+   +#+           */
  8. /*   Created: 2019/07/14 19:50:13 by squiana           #+#    #+#             */
  9. /*   Updated: 2019/07/14 21:17:29 by ckumera          ###   ########.fr       */
  10. /*                                                                            */
  11. /* ************************************************************************** */
  12.  
  13. #include <unistd.h>
  14.  
  15. int     test_symbol(int n, char **tab);
  16. int     sudoky(int place, char **tab);
  17. void    display(char **tab);
  18.  
  19. int     main(int argc, char **argv)
  20. {
  21.     if (test_symbol(argc, argv))
  22.     {
  23.         if (sudoky(9, argv))
  24.             display(argv);
  25.         else
  26.             write(1, "Error\n", 6);
  27.     }
  28.     else
  29.         write(1, "Error\n", 6);
  30.     return (0);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment