-
Notifications
You must be signed in to change notification settings - Fork 0
CUNIX_2 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
CUNIX_2 #7
Conversation
| @@ -0,0 +1,6 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| int abs(int i) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ft_abs
| @@ -0,0 +1,12 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| void bzero(void *s, size_t n) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ft_bzero
| @@ -0,0 +1,15 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| char *strdup(const char *str) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ft_strdup
| @@ -0,0 +1,6 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| int fr_isalpha(int c) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ft_
| #include <stdlib.h> | ||
| #include <stdarg.h> | ||
| #include <unistd.h> | ||
|
|
||
| void ft_printf(char *format, ...); | ||
|
|
||
| char *ft_itoa(int val, int base); | ||
|
|
||
| unsigned int ft_strlen(char *str); | ||
|
|
||
| int ft_atoi(const char *str); | ||
|
|
||
| void my_print_buf(char *buf, int align, int len); | ||
|
|
||
| void my_print_char(char ch, int align); | ||
|
|
||
| void my_print_str(char *str, int align); | ||
|
|
||
| void my_pad_with_zeros(int num, int len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rarely see anyone adding spacing inside include guards
| if (str1_cp[i] == str2_cp[i]) | ||
| { | ||
| i++; | ||
| } | ||
| else | ||
| { | ||
| return (str1_cp[i] - str2_cp[i]); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (some condition to break)
{
return
}
continue iteration
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c - 32
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c + 32
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c + 32 : c
|
|
||
| int ft_toupper(int c) | ||
| { | ||
| return (c >= 'a' && c <= 'z') ? c -= 32 : c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c - 32 : c
No description provided.