examples require #include <cstring> and const in front of char *s