title: Write to Linux sysfs node in C
body: <p>From the shell I can activate the leds on my system like this:</p>
  
  <pre><code>#echo 1 &gt; /sys/class/leds/NAME:COLOR:LOCATION/brightness
  </code></pre>
  
  <p>I want to do the exact same thing from a C program, but I have not been able to find a simple example on how to accomplish this?</p>