Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!kogwy!new1!roger From: roger@zuken.co.jp (Roger Meunier) Newsgroups: comp.lang.c++ Subject: Re: How to get the functionality of realloc() in C++ ? Message-ID: Date: 17 May 91 01:23:40 GMT References: <1991May13.191807.29295@csl.dl.nec.com> <728@taumet.com> Sender: news@new1.zuken.co.jp Organization: ZUKEN Inc. Yokohama, JAPAN Lines: 10 In-reply-to: steve@taumet.com's message of 14 May 91 22:01:25 GMT In article <728@taumet.com> steve@taumet.com (Stephen Clamage) writes: > WARNINGS: Do not use malloc/realloc for objects with > constructors. Do not 'delete' something allocated with > malloc/realloc. Do not 'free' something allocated with 'new'. How is strdup() implemented in a C++ environment? Does it allocate using 'new" or malloc()? -- Roger Meunier @ Zuken, Inc. Yokohama, Japan (roger@zuken.co.jp)