Open
Conversation
dnfd
reviewed
Aug 30, 2021
| @@ -0,0 +1,6 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| int abs(int i) | |||
| @@ -0,0 +1,12 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| void bzero(void *s, size_t n) | |||
| @@ -0,0 +1,15 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| char *strdup(const char *str) | |||
| @@ -0,0 +1,6 @@ | |||
| #include "../libft.h" | |||
|
|
|||
| int fr_isalpha(int c) | |||
Comment on lines
+4
to
+22
| #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.
I rarely see anyone adding spacing inside include guards
Comment on lines
+11
to
+18
| if (str1_cp[i] == str2_cp[i]) | ||
| { | ||
| i++; | ||
| } | ||
| else | ||
| { | ||
| return (str1_cp[i] - str2_cp[i]); | ||
| } |
There was a problem hiding this comment.
if (some condition to break)
{
return
}
continue iteration
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
|
|
||
| int ft_tolower(int c) | ||
| { | ||
| return (c >= 'A' && c <= 'Z') ? c += 32 : c; |
|
|
||
| int ft_toupper(int c) | ||
| { | ||
| return (c >= 'a' && c <= 'z') ? c -= 32 : c; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.