Re: A function for ls?
- From: Paul Davis <pbd Op Net>
- To: Germano Rizzo <manomano ciaoweb it>, gtk-list gnome org
- Subject: Re: A function for ls?
- Date: Sat, 24 Feb 2001 12:46:57 -0500
>> is there a library function that gives the contents of a directory?
>> Something like 'ls'... or a way to do it using other functions?
>
>It's platform dependent. On a POSIX-compliant system you can
>
>#include <dirent.h>
>
>end use functions such as opendir(), readdir(), ... These all have
>manual pages e.g. man 3 opendir.
see also ftw(3) for an easy way to recursively walk a directory tree.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]