In TCL, you would do:
<verbatim>
  file tail [file normalize camelcase.txt]
  --->  camelCase.txt
</verbatim>
To do so in C, it is necessary to review the TCL C source code.