Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 13 int ft_putchar(char c);
- 14
- 15 void print_first_line1(int h)
- 16 {
- 17 int i;
- 18
- 19 i = 0;
- 20 ft_putchar('/');
- 21 while (i < (h - 2))
- 22 {
- 23 ft_putchar('*');
- 24 i++;
- 25 }
- 26 if (h > 1)
- 27 ft_putchar('\\');
- 28 ft_putchar('\n');
- 29 }
- 30
- 31 void print_line1(int h)
- 32 {
- 33 int i;
- 34
- 35 i = 0;
- 36 ft_putchar('*');
- 37 while (i < (h - 2))
- 38 {
- 39 ft_putchar(' ');
- 40 i++;
- 41 }
- 42 if (h > 1)
- 43 ft_putchar('*');
- 44 ft_putchar('\n');
- 45 }
- 46
- 47 void print_last_line1(int h)
- 48 {
- 49 int i;
- 50
- 51 i = 0;
- 52 ft_putchar('\\');
- 53 while (i < (h - 2))
- 54 {
- 55 ft_putchar('*');
- 56 i++;
- 57 }
- 58 if (h > 1)
- 59 ft_putchar('/');
- 60 ft_putchar('\n');
- 61 }
- 62
- 63 void rush01a(int h, int v)
- 64 {
- 65 int i;
- 66
- 67 i = 0;
- 68 if (h < 1 || v < 1)
- 69 return ;
- 70 print_first_line1(h);
- 71 while (i < (v - 2))
- 72 {
- 73 print_line1(h);
- 74 i++;
- 75 }
- 76 if (v > 1)
- 77 print_last_line1(h);
- 78 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement