9fans archive / 1998 / 11 / 86 / prev next From: Kenji Okamoto okamoto@ear... Subject: [9fans] How to use strdup()? Date: Mon, 16 Nov 1998 17:12:05 +0900 > >>I'm facing memory problem in news reader having > >>more than 2000 unread articles which > >>uses the strdup() more than 2000 times, and > >>then fails in malloc. > > it probably means i didn't consider closely enough when to free > the string passed to plinitlabel etc, No! It's mainly my part in making tcs(1) to library. It's expensive to convert ISO-2022-JP to utf or vise versa. I'm now in the process of updating this, however, it's hard enough to me. :-) Many strange behaviour have I. Kenji