C programming question

cycleman77

Senior member
Jan 16, 2001
352
0
0
I need my program to search thru directories to find a given command. (working on Solaris 9)

How do I change directories?

 

Armitage

Banned
Feb 23, 2001
8,086
0
0
I know what you're looking for, but can't quite come up with it at the moment.
You could just do a system call to the shell find command to find the file, and then use the absolute path name.