Path: utzoo!lsuc!ncrcan!brambo!morgan From: morgan@brambo.UUCP (Morgan W. Jones) Newsgroups: comp.sys.amiga Subject: ExNext Questions Message-ID: <244@brambo.UUCP> Date: 27 Jan 88 19:11:28 GMT Organization: Bramalea Software Inc., Bramalea, Ont. Lines: 24 Reply-To: Here's another one of those Amiga Quirks for the Gurus to have fun with: In the Libraries manual, the man page for ExNext explains that in order to read the files of a directory you call Examine to get a FileInfoBlock, and pass this and the Lock to ExNext until it fails. I've done this (A2000 & Howe's assembler), and it seems to work fine except for one small problem. The manual states that at the end of a directory, ExNext will fail and IoErr will return a code of ERROR_NO_MORE_ENTRIES. In my program, however, IoErr returns a zero at this point. But except for that, everything works fine. Any explanations? Has anyone tried to get printf (from amiga.lib) working from assembler? I've managed to get fprintf working, but printf seems to want a static long word assigned to _stdout and I can't figure out what format this is in. What does the Lattice C compiler store in stdout? -- Morgan Jones - Bramalea Software Inc. ...!utgpu!telly \ !brambo!morgan ...!{uunet!mnetor, watmath!utai}!lsuc!ncrcan / "These might not even be my opinions, let alone anyone else's."