T
Tuang
I'm looking through samples of C source that are likely to be well
written, like reading Spanish books to improve my Spanish. In the GNU
libiconv source, I found this function:
static int print_one (unsigned int namescount,
const char * const * names,
void* data)
{
unsigned int i;
(void)data;
for (i = 0; i < namescount; i++) {
if (i > 0)
putc(' ',stdout);
fputs(names,stdout);
}
putc('\n',stdout);
return 0;
}
I don't understand the line that says
(void)data;
Could someone explain that line to me?
Thanks.
written, like reading Spanish books to improve my Spanish. In the GNU
libiconv source, I found this function:
static int print_one (unsigned int namescount,
const char * const * names,
void* data)
{
unsigned int i;
(void)data;
for (i = 0; i < namescount; i++) {
if (i > 0)
putc(' ',stdout);
fputs(names,stdout);
}
putc('\n',stdout);
return 0;
}
I don't understand the line that says
(void)data;
Could someone explain that line to me?
Thanks.