1834263 Members
86157 Online
110066 Solutions
New Discussion

Re: C++ function

 
Pramodu. C. P
Occasional Contributor

C++ function

Hi All,

I am searching for a c++ function which can be used for retrieving the current directory list to an array and then process it.

Please help...

Pramodu
4 REPLIES 4
Steve Steel
Honored Contributor

Re: C++ function

Hi

getwd getcwd probably are what you need.

Assuming you have man pages on your system run catman -w

This makes /usr/lib/whatis a man index

Then with man -k you can search it

example

man -k current|grep dir
getcwd( )(3C) - get pathname of current working directory
getwd( )(3C) - get pathname of current working directory

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Pramodu. C. P
Occasional Contributor

Re: C++ function

Hi Steve,

These functions can return the current working directory, I am searching for the current directory file list.


Thanks/Regards

Pramodu
Steve Steel
Honored Contributor

Re: C++ function

Hi

I am looking for it but cannot find such a function.

Where did you hear of it


Look at

http://devresource.hp.com/devresource/Tools/lang.html


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: C++ function

Hi


man directory


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)