Compare commits
2 Commits
f7ce97499b
...
f5cde71df9
| Author | SHA1 | Date |
|---|---|---|
|
|
f5cde71df9 | |
|
|
e22e2b2191 |
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 10:33:26 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:29:19 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:36:25 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,6 +28,7 @@ int ft_str_is_alpha(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
if (ft_str_is_alpha(STR))
|
||||
printf("Contains only alphabetical characters\n");
|
||||
else
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 10:33:26 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:29:01 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:36:42 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,6 +28,7 @@ int ft_str_is_numeric(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
if (ft_str_is_numeric(STR))
|
||||
printf("Is numeric\n");
|
||||
else
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:03:56 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:08:55 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:36:52 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -23,6 +23,7 @@ int ft_str_is_lowercase(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
if (ft_str_is_lowercase(STR))
|
||||
printf("Is all lowercase\n");
|
||||
else
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:03:56 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:16:08 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:36:59 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,6 +28,7 @@ int ft_str_is_uppercase(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
if (ft_str_is_uppercase(STR))
|
||||
printf("Is all uppercase\n");
|
||||
else
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:03:56 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:16:50 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:37:11 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -28,6 +28,7 @@ int ft_str_is_printable(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
if (ft_str_is_printable(STR))
|
||||
printf("Is printable\n");
|
||||
else
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:18:13 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:28:23 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:37:20 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/19 11:27:43 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/24 01:31:35 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:37:33 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -45,6 +45,7 @@ char *ft_strcapitalize(char *str)
|
|||
|
||||
int main(void)
|
||||
{
|
||||
printf(STR "\n");
|
||||
char s1[] = STR;
|
||||
printf("%s\n", ft_strcapitalize(s1));
|
||||
return (0);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/03/21 05:44:01 by tischmid #+# #+# */
|
||||
/* Updated: 2023/03/22 20:22:36 by tischmid ### ########.fr */
|
||||
/* Updated: 2023/03/24 01:40:48 by tischmid ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -91,25 +91,21 @@ void *ft_print_memory(void *addr, unsigned int size)
|
|||
|
||||
/* ////
|
||||
#include <stdio.h>
|
||||
#define STR "\x42\x6f\x6e\x6a\x6f\x75\x72\x20\x6c\x65" \
|
||||
"\x73\x20\x61\x6d\x69\x6e\x63\x68\x65\x73" \
|
||||
"\x09\x0a\x09\x63\x07\x20\x65\x73\x74\x20" \
|
||||
"\x66\x6f\x75\x09\x74\x6f\x75\x74\x09\x63" \
|
||||
"\x65\x20\x71\x75\x20\x6f\x6e\x20\x70\x65" \
|
||||
"\x75\x74\x20\x66\x61\x69\x72\x65\x20\x61" \
|
||||
"\x76\x65\x63\x09\x0a\x09\x70\x72\x69\x6e" \
|
||||
"\x74\x5f\x6d\x65\x6d\x6f\x72\x79\x0a\x0a" \
|
||||
"\x0a\x09\x6c\x6f\x6c\x2e\x6c\x6f\x6c\x0a" \
|
||||
"\x20\x00"
|
||||
#define STR2 "HELLO"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
char *ptr = "\x42\x6f\x6e\x6a\x6f\x75\x72\x20\x6c\x65"
|
||||
"\x73\x20\x61\x6d\x69\x6e\x63\x68\x65\x73"
|
||||
"\x09\x0a\x09\x63\x07\x20\x65\x73\x74\x20"
|
||||
"\x66\x6f\x75\x09\x74\x6f\x75\x74\x09\x63"
|
||||
"\x65\x20\x71\x75\x20\x6f\x6e\x20\x70\x65"
|
||||
"\x75\x74\x20\x66\x61\x69\x72\x65\x20\x61"
|
||||
"\x76\x65\x63\x09\x0a\x09\x70\x72\x69\x6e"
|
||||
"\x74\x5f\x6d\x65\x6d\x6f\x72\x79\x0a\x0a"
|
||||
"\x0a\x09\x6c\x6f\x6c\x2e\x6c\x6f\x6c\x0a"
|
||||
"\x20\x00";
|
||||
// ptr = "hello";
|
||||
// ptr = "hello world";
|
||||
// ptr = "hello whatever";
|
||||
// ptr = "hello loook";
|
||||
// ptr = "hello";
|
||||
// ptr = "hello";
|
||||
char *ptr = STR;
|
||||
ft_print_memory(ptr, 92);
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue