title: C how to use the function uname
body: <p>I should write a function to get some information about the system (the most important information is the the architecture). I found the function <strong>uname</strong> which can be used including <strong>sys/utsname.h</strong>. Well, though I googled and I read the documentation, I couldn't find any example of the function and I don't understand how to use uname. Anyone can explain me how to use it? it would be great if you can write an example, too. Thanks in advance.</p>