HI,Manish Katiyar! thanks,I see too now. ======= 2010-01-28 14:24:58 The letter which you writted before:======= >On Thu, Jan 28, 2010 at 11:39 AM, Randi Botse <nightdecoder@xxxxxxxxx> wrote: >> (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' ? > >Some time it is also to shut up static analysis tools, which might >crib if the function is supposed to return a value and you have not >used the return value. It might be intentional or you might have just >missed. So inorder to show that it is intetional not to use the return >value we typecast it. > >Thanks - >Manish > >> >> Thanks, >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in >> the body of a message to majordomo@xxxxxxxxxxxxxxx >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > > >-- >Thanks - >Manish >================================== >[$\*.^ -- I miss being one of them >================================== >-- >To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in >the body of a message to majordomo@xxxxxxxxxxxxxxx >More majordomo info at http://vger.kernel.org/majordomo-info.html = = = = = = = = = = = = = = = = = = = = Sincerely phil song philsong@xxxxxxxxxxxx 2010-02-01 ÿôèº{.nÇ+?·?®??+%?Ëÿ±éݶ¥?wÿº{.nÇ+?·¥?{±ýÏé®?+ji¢?â?Ø^n?r¡ö¦zË?ëh?¨èÚ&£ûàz¿äz¹Þ?ú+?Ê+zf£¢·h??§~??Ûiÿÿï?êÿ?êçz_è®æj:+v?¨þ)ߣøm