-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
81 lines (79 loc) · 1.75 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include <stdio.h>
#include <unistd.h>
/**
* _putchar - writes the character c to stdout
* @c: The character to print
*
* Return: On success 1.
* On error, -1 is returned, and errno is set appropriately.
*/
int _putchar(char c);
/**
* print_alphabet - prints alphabets
*
* returns: 0 (success)
*/
void print_alphabet(void);
/**
* print_alphabet_x10 - prints alphabets 10 times.
*
* returns: 0 (success)
*/
void print_alphabet_x10(void);
/**
* _islower - cheaks if the character is lowercase
* @c: the charater to be determined if it is lower or not
* Return: 1 if losercase or 0 if not
*/
int _islower(int c);
/**
* _isalpha - determines if the given character is aplhabetice
* @c: the character to be evaltaed as alphabetic or not
*
* Return: 0 is the letter is alphabptic otherwise 1
*/
int _isalpha(int c);
/**
* print_sign - print sign of number
* @n: number to check
* Return: 1 if greater than 0, 0 if 0, -1 if less than 0
*/
int print_sign(int n);
/**
* _abs - compute absolute value of integer
* @n: integer argument
* Return: absolute value
*/
int _abs(int n);
/**
* print_last_digit - print last digit of integer
* @nld: integer argument
* Return: last digit of number
*/
int print_last_digit(int nld);
/**
* jack_bauer - print every minute of a day
* Description: print minutes 00:00 to 23:59
*/
void jack_bauer(void);
/**
* times_table - print multiplication table
*/
void times_table(void);
/**
* add - add two integers
* @a: first integer
* @b: second integer
* Return: sum
*/
int add(int a, int b);
/**
* print_to_98 - print numbers n to 98
* @n: integer argument
*/
void print_to_98(int n);
/**
* print_times_table - prints the n times table, starting with 0
* @n: number of the times table
*/
void print_times_table(int n);