correct example view and change strn* functions to use the strl* counterparts