int main(void) { char *s; s = strdup("Hello Holberton! \\o/ #cisfun"); /* This is an example, but it should work for any string */ printf("Before: %s\n", s); crazy_reverse_string(s); printf("After: %s\n", s); return (0); }
int main(void) { char *s; s = strdup("Hello Holberton! \\o/ #cisfun"); /* This is an example, but it should work for any string */ printf("Before: %s\n", s); crazy_reverse_string(s); printf("After: %s\n", s); printf("\nStarts here:"); write(1, "Hello World!", (1 << 3) + (1 << 2)); printf("\n"); return (0); }