title: Find file name using wildcard in C
body: <p>I need to find the name of a file using * in a C program.  There is exactly 1 file in the specific folder that has the extension .UBX.  I can do this in terminal but it doesn't work in C.  Can anyone give me example code to do this?</p>
  
  <pre><code>//There is exactly 1 file that ends in .UBX
  #define FILE_TO_SEND    "/home/root/logs/*.UBX"
  
  fd = open(FILE_TO_SEND, O_RDONLY);
  </code></pre>