AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
Entry
     R0 = Pointer to pathname
Exit
     R0 = Pointer to leafname

Finds the last occurence of . in the string pointed to by R0, and returns a pointer to the next character. eg. given scsi::HardDisc.$.first.second.last it will return a pointer to last. This can be useful for both extracting the leaf name, and for determining what directory the file is in (by poking a zero to (R0-1) - eg. MOV R2,#0  STRB R2,[R0,#-1] ).

Provided by Misc

[sh-index] Back to list of manuals