title: fopen auto complete changing directory
body: <p>Working on a C program in Debian and I need to access a directory that has numbers at the end of it that occasionally change.  When accessing from the command prompt I can tab complete or use the *, how can I do this from a C program using fopen or some other method?</p>
  
  <pre><code>pwm = fopen("/sys/devices/ocp.3/pwm_test_P8_19.15/duty // this is the changing directory
  pwm = fopen("/sys/devices/ocp.3/pwm_t*/duty // this did not work
  </code></pre>