From mboxrd@z Thu Jan 1 00:00:00 1970 From: john@jjdev.com (John de la Garza) Date: Mon, 8 Dec 2014 21:20:58 -0500 Subject: kobject sample code Message-ID: <20141209022056.GA12373@vega.jjdev.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I'm looking at samples/kobject/kobject-example.c at line 39 foo is read: sscanf(buf, "%du", &foo); foo is an int so why is it read using %du not %d?