2. Write a function that takes as parameter a string buf, a character c and a string str and returns a dynamically allocated string obtained from buf by substituting every occurrence of c with str.
3. Write a function that takes as parameter a string buf, a string str and a character c and returns a dynamically allocated string obtained from buf by substituting every occurrence of str with c.
4. Write a function that reads an arbitrarily long text and returns a NULL-terminated array of pointers (char *) to text lines. Lines longer than 80 chars will be split.
Marius Minea Last modified: Wed Nov 20 7:50:00 EET 2013