char *subject = strdup(" Bonkers")

Andy Armstrong andy at hexten.net
Sun May 13 18:01:43 BST 2007


On 13 May 2007, at 17:50, Andy Wardley wrote:

> 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.

That's nothing. When I started you had to enter binary directly into  
core memory using a long pin to selectively discharge bits :)

-- 
Andy Armstrong, hexten.net



More information about the london.pm mailing list