int main(void) { char str[] = "R$$ RTFM 789$3 uyHjHHtg -0Pp mnhGGo"; printf("%s", ft_strcapitalize(str)); return(0); }
int main(void) { char str[] = "salut, comment tu vas ? 42mots quarante-deux; cinquante+et+un"; printf("%s\n", ft_strcapitalize(str)); return (0); }
int main() { char b[] = "saLut, comment tu vas ? 42mots qua&rante-deux; cinq^uante+et+un"; printf("%s\n", ft_strcapitalize(b)); return (0); }
int main(void) { time_t start_t, end_t; double diff_t; char *data[TEST_CASES][2]; char *original; char *answer; char your_result[300]; int i; ft_add_test_case(&data[0][0], "Je Code avec le CUL", "Je Code Avec Le Cul"); ft_add_test_case(&data[1][0], "U MAD BRO", "U Mad Bro"); ft_add_test_case(&data[2][0], "", ""); ft_add_test_case(&data[3][0], "salut, comment tu vas ? 42mots quarante-deux; cinquante+et+un", "Salut, Comment Tu Vas ? 42mots Quarante-Deux; Cinquante+Et+Un"); i = 0; while (i < TEST_CASES) { ft_get_values(&data[i][0], &original, &answer); strcpy(your_result, original); time(&start_t); ft_strcapitalize(your_result); time(&end_t); diff_t = difftime(end_t, start_t); printf("original: %s, your_result: %s, actual_result: %s, execution time = %f\n", original, your_result, answer, diff_t); if (strcmp(your_result,answer) != 0) FAKE_N_GAY; if (diff_t >= 2.0) SNAIL; ++i; } GOES; }
int main(void) { char str[] = "salut, ce faci? 42cuvinte patruzeci-doi; cincizeci+si+unu"; printf("%s", ft_strcapitalize(str)); return (0); }
int main(void) { char str[] = "salut, COMMENT tU v7As ? 42mots quarante-deux; cinquante+et+un"; // char str[] = "SALUT"; printf("%s \n", str); printf("%s", ft_strcapitalize(str)); return (0); }
int main(int ac, char **av) { if (ac != 2) return (0); char *str; str = ft_strcapitalize(av[1]); printf("%s", str); return (0); }
int main(void) { char s[100]; strcpy(s, "salut, comment tu vas ? 42mots quarante-deux; cinquante+et+un"); printf("%s\n", s); printf("%s\n", ft_strcapitalize(s)); return (0); }
int main(int ac, char **argv) { char a[15] = "a AWE+s444sa"; if (ac > 0) { ft_strcapitalize(a); printf("%s", a); } return(0); }