C
CPlusPlus
How can this C statement be converted to C++?
printf(" %.*s\n", sizeof(devInquiry.inq.dev.prodID),
devInquiry.inq.dev.prodID);
cout << ?????
In case, someone is wondering, what is prodID. It is member of
structure, e.g, as shown;
struct DEV_INQ
{
// data members
...
unsigned char prodID[16];
// some more stuff here
...
}DEVINQ;
Thanks
printf(" %.*s\n", sizeof(devInquiry.inq.dev.prodID),
devInquiry.inq.dev.prodID);
cout << ?????
In case, someone is wondering, what is prodID. It is member of
structure, e.g, as shown;
struct DEV_INQ
{
// data members
...
unsigned char prodID[16];
// some more stuff here
...
}DEVINQ;
Thanks