Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!mailrus!ulowell!cbmvax!higgin From: higgin@cbmvax.UUCP (Paul Higginbottom MKT) Newsgroups: comp.sys.amiga Subject: Re: Examine and ExNext return codes Keywords: ints, Examine Message-ID: <5596@cbmvax.UUCP> Date: 30 Dec 88 14:38:04 GMT References: <246@dsacg2.UUCP> <247@dsacg2.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom MKT) Organization: Commodore Technology, West Chester, PA Lines: 24 In article <247@dsacg2.UUCP> nor1675@dsacg2.UUCP (Michael Figg) writes: $[deleted broken program source] $But am still curious about "%ls%. $comes down to what does "%ls" give you? Does it have something to do with $the fact that "fib->fib_FileName[0]" being an address (pointer) therefore $a long, and not an int? Am I going to answer all my own questions? String parameters (%s) in printf require pointers as arguments. Prefixing any format arguments in printf with "l" specifies that the INTEGER argument is a LONG and not just a regular INT. To print long values in hex for example, you use "%lx". I would expect printf parses but ignores "l" in "%ls". I think Rob got carried away with "l" because they empirically worked. :-) $Thanks again. You're welcome. $"Better graphics with crayons" Michael Figg $Have since switched to oil based paints DLA Systems Automation Center $but find they really screw up the color Columbus, Oh. $map and pens! (614)-238-9036 Paul.