-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7c1517
commit 2310e8a
Showing
5 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <libftp.h> | ||
|
||
void ft_dstrdel(char **line) | ||
{ | ||
int count; | ||
|
||
count = 0; | ||
while (line[count]) | ||
{ | ||
ft_strdel(&line[count++]); | ||
} | ||
free(line); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <libftp.h> | ||
|
||
static int ft_isspace(char c) | ||
{ | ||
return (c == ' ' || c == '\n' || c == '\t' || c == '\v' || c == '\r' || c == '\f'); | ||
} | ||
|
||
int ft_empty(char *line) | ||
{ | ||
int count; | ||
int size; | ||
|
||
count= 0; | ||
size = 0; | ||
while (line[count]) | ||
{ | ||
if (ft_isspace(line[count])) | ||
size++; | ||
count++; | ||
} | ||
return (size == count); | ||
} |
This file contains 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
This file contains 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