ls command function using c program | os cs8461 | 4th sem of cse | operating system lab | QT

Поделиться
HTML-код
  • Опубликовано: 7 окт 2024
  • operating system laboratory for cse engineering playlist
    • Operating System
    Exp# 3a ls command
    Date:
    Aim
    To simulate ls command using UNIX system calls.
    Algorithm
    1. Store path of current working directory using getcwd system call.
    2. Scan directory of the stored path using scandir system call and sort the resultant
    array of structure.
    3. Display dname member for all entries if it is not a hidden file.
    4. Stop.

Комментарии •