On Wed, 25 Apr 2012 17:44, jim at meyering.net said: > - strncpy( p, sep, slen ); > - p += slen; > + p = stpncpy( p, sep, slen ); Well, stpncpy is not portable. However it looks very useful. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.