John Summerfield wrote:
>
> According to the C++ primer which I have before me,
> The data() method returns a pointer to the first element of a string formed
> by copying elements from the range [begin,end).
>
> (the broken bracket/parentheses pairing belongs to the book too).
It deals with non/inclusive. I think it means includes begin, the '[',
but not end, the ')', which is the same as [begin,end-1],
but I may have the [/] and (/) pairs backwards.
from Levente's mesage I see I'm right. the end-1 skipps the terminator
needed for a C string. So the call to getgrnam doesn't
have a valid argument. same as any C string functopn without
the proper terminator.
-Thomas
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list