C code for linux shell command ls