On Sun, 29 Feb 2004 19:06:39 GMT, "Ian Lazarus" <no****@nowhere.net>
wrote in comp.lang.c++:
Greetings and felicitations,
I need to write a class which will be part of a library. The class is
exposed to users of the library. The class needs to provide strings (only
char and wchar_t) to its users. The data in the strings is not known until
run time. The version of the STL which the class is compiled with won't
necessarily be the same version which users of the library will compile
with. So how can it provide strings to its users?
Thanks
The <cstdlib> functions std::malloc(), std::calloc(), std::realloc(),
and std::free() are all part of ISO standard C++ and are completely
independent of any C++ features in the library. When properly used,
they can certainly provide for management of C strings and wide
strings.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html