> John Summerfield wrote:
> >
> > I have a code fragment:
> > struct group *grp = getgrnam(group.data());
>
> you have to use group.c_str() since .data() doesn't have a \0 terminator.
Filled with disbelief ( the C++ primer DOES use the word "string"), I tried it.
It works.
What can I say?
Thanks.
I've marked the book;-)
--
Cheers
John Summerfield
http://www2.ami.com.au/ for OS/2 & linux information.
Configuration, networking, combined IBM ftpsites index.
Microsoft's most solid OS: http://www.geocities.com/rcwoolley/
Note: mail delivered to me is deemed to be intended for me, for my disposition.
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list