9fans archive / 1998 / 11 / 75 /    prev next

From: Scott Schwartz schwartz@bio...
Subject: [9fans] How to use strdup()?
Date: Thu, 12 Nov 1998 20:12:24 -0500

okamoto@gra... writes:
| strdup(2) uses malloc(2), but does not free it.
| When the malloced memory space will be freed?

You'll need to free each string when you know
it is no longer in use.

Anyone ported Bohem's garbage collector to Plan 9?

Alternatively, anyone ported Limbo to Plan 9? :-)