Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: OO model for Freeciv?
Home

[Freeciv-Dev] Re: OO model for Freeciv?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: OO model for Freeciv?
From: 蔡恆華 <iquin@xxxxxxxxxx>
Date: Mon, 1 May 2000 22:52:19 -0400 (EDT)

>> s += '.';
>>
>> What is the shortest way to express this in C?
> s = strcat((char *)realloc(s , strlen(s) + 1), ".");

Oops, sorry. Should have been:
s = strcat((char *)realloc(s , strlen(s) + 2), ".");

Regards,
I.Q.
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup




[Prev in Thread] Current Thread [Next in Thread]