how to do a 'locate' function (the unix cmd)

Reply

Join Date: Feb 2008
Posts: 25
Reputation: onemanclapping is an unknown quantity at this point 
Solved Threads: 0
onemanclapping onemanclapping is offline Offline
Light Poster

how to do a 'locate' function (the unix cmd)

 
0
  #1
32 Days Ago
Hi,

I'm an IT Engineering student and I have the task of doing, in C, a function that does on linux the equivalent of the 'locate' function.

Can someone help me?

I need ideas for how to read a file system! How can I list directories (to a string or such) and the files in it?

Thanks in advance!
Reply With Quote Quick reply to this message  
Reply

Tags
linux, locate, unix

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC