Writing a simplified version of 'ls' in C.