#include /* printf(), scanf(), fscanf(), ... */ #include /* malloc(), free(), EXIT_SUCCESS, EXIT_FAILURE, ... */ #include /* prototipo */ void f(char *s, const char** p); int main() { char *s = "Como e bom programar em C!\0\nIsso que e linguagem:-)\n"; const char *p = NULL; printf("%s", s); f(s, &p); printf("%s", p); f(s, &p); printf("%s", p); return 0; } void f(char *s, const char **p) { *p = s + strlen("Como e bom programar em C!\n\0"); }