kobject sample code

John de la Garza john at jjdev.com
Mon Dec 8 21:20:58 EST 2014


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?




More information about the Kernelnewbies mailing list