tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: swscanf() causing Memory Fault

On Sun, 16 Nov 2008, James K. Lowden wrote:
+       (void)memset(WCIO_GET(&f), 0, sizeof(struct wchar_io_data));

Why cast a discarded return code to void?  That seems overly fussy to me.

We've been doing this since ~forever: It's to tell lint(1) that we're aware of the fact that menset() returns something, and that we ignore it on purpose.

 - Hubert

Home | Main Index | Thread Index | Old Index