Andy Armstrong wrote: > Or indeed > > char *str = strdup("original"); I'm showing my age now, but C didn't have strdup() back when I first learnt it. So it's all a bit too new and fangly to slip easily into my limited C programming lexicon. Old dog + new tricks = type mismatch! A