AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     28 (Count objects)
     R1 =     pointer to wildcarded filename of files to count
     R3 =     flags
     R4 =     start time
     R5 =     high byte of start time
     R6 =     end time
     R7 =     high byte of end time
     R8 =     pointer to descriptor

<=     R2 =     total length
     R3 =     number of files

This SWI allows you to count files as in the *Count command.

Note: The value in R2 is limited to reliably counting structures totalling less than 4 Gbytes, this SWI seems to have been missed in RISC OS 3.60 when all the other APIs were revised to deal with large discs.

FileSwitch 2.72 and later allow an optional descriptor block to be supplied in R8 which returns the full count, and if the true counted length exceeded that which can be represented by R2 sets it to a large positive non zero value, rather than modulo 4 Gbytes like in earlier versions.

[sh-index] Back to list of manuals