New natives for reading dirs

This commit is contained in:
David Anderson 2005-07-13 23:30:28 +00:00
parent ef908ff4f5
commit a9d4e4e711

View File

@ -69,6 +69,11 @@ native filesize(const filename[],{Float,Sql,Result,_}:...);
//Delete a file (delete_file macro)
native unlink(const filename[],{Float,Sql,Result,_}:...);
//Returns a handle to a directory
native open_dir(dir[], firstfile[], length);
native next_file(dirh, buffer[], length);
native close_dir(dirh);
//These are type specific file getting and writing commands:
//c=char, s=short, l=long, i=int, f=float
native fgetc(file); //read char (size 1)