Skip to content

Commit e892197

Browse files
committed
first task has been added
1 parent eaa167f commit e892197

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "main.h"
2+
3+
/**
4+
* main - 0-putchar.c task
5+
*
6+
* Return: always success (0)
7+
*/
8+
9+
int main(void)
10+
{
11+
_putchar('_');
12+
_putchar('p');
13+
_putchar('u');
14+
_putchar('t');
15+
_putchar('c');
16+
_putchar('h');
17+
_putchar('a');
18+
_putchar('r');
19+
_putchar('\n');
20+
return (0);
21+
}

0x02-functions_nested_loops/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 0x02-functions_nested_loops
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include <unistd.h>
2+
3+
/**
4+
* _putchar - writes the character c to stdout
5+
* @c: The character to print
6+
*
7+
* Return: On success 1.
8+
* On error, -1 is returned, and errno is set appropriately.
9+
*/
10+
int _putchar(char c)
11+
{
12+
return (write(1, &c, 1));
13+
}

0x02-functions_nested_loops/main.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
int _putchar(char);

0 commit comments

Comments
 (0)