function cast?

Randi Botse <[email protected]>
Newsgroups gmane.linux.c-programming
Message-ID <[email protected]>
(sorry for my first uncomplete email, please abandon the first mail)

Hi All,

Sometimes i see codes are written like this:

(void) printf(fmt);

- or -

(void) close(fd);

What these means? i think it is not necessary to put that 'void' on a
statement, or it just like when we cast a data type like:

double d = 93.43;
int i = (int) d;

but why those function need to be casted in a 'void' ?

Thanks,
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.