Skip to content

Commit 9acd110

Browse files
committed
task 3
1 parent 0d78e4c commit 9acd110

File tree

8 files changed

+13
-0
lines changed

8 files changed

+13
-0
lines changed

0x05-pointers_arrays_strings/100-atoi.c

Whitespace-only changes.

0x05-pointers_arrays_strings/3-puts.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "main.h"
2+
/**
3+
* _puts - prints a string, followed by a new line, to stdout
4+
* @str: string to print
5+
*/
6+
void _puts(char *str)
7+
{
8+
while (*str != '\0')
9+
{
10+
_putchar(*str++);
11+
}
12+
_putchar('\n');
13+
}

0x05-pointers_arrays_strings/4-print_rev.c

Whitespace-only changes.

0x05-pointers_arrays_strings/5-rev_string.c

Whitespace-only changes.

0x05-pointers_arrays_strings/6-puts2.c

Whitespace-only changes.

0x05-pointers_arrays_strings/7-puts_half.c

Whitespace-only changes.

0x05-pointers_arrays_strings/8-print_array.c

Whitespace-only changes.

0x05-pointers_arrays_strings/9-strcpy.c

Whitespace-only changes.

0 commit comments

Comments
 (0)