Given the following code snippet:
char * m_recid = "for whom the bell tolls";
CString * abc = m_recid;
if (*m_recid == NULL) {
I'd be interested to hear others' opinions. One person said this was
the worst example of coding he'd ever seen (I didn't say it and I
didn't write it).
BTW, this brings up a couple points of interest to me. Is abc above a
pointer to a pointer to char (in addition to being a pointer to a
CString object)? Does the following code:
char * abc[20];
automatically instantiate a pointer to a pointer to the first element
of abc?
* KWQ/2 1.2i *
--- FLAME v1.1
---------------
* Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)
|