Start using strdup for constant strings, as in 21st Century C, chapter 9