> how do I display a c type array of characters using NSLog()? do I have
> to convert it to an NSArray and if so how would I do this? Thanks
With the single addition of the %@ specifier for printing objects, NSLog
takes exactly the same arguments as printf, so you can find out all knids
of things about it by typing "man 3 printf" in the Terminal.
%s will log a null-terminated C string, which is just an array of char
where the end is denoted with a 0. If it's not null-terminated, then you
can use the format specifier %.*s and then pass two arguments, where the
first is the length of the string and the second is the actual string.
Tim Cutts - 26 May 2005 16:19 GMT
>> how do I display a c type array of characters using NSLog()? do I have
>> to convert it to an NSArray and if so how would I do this? Thanks
>
>With the single addition of the %@ specifier for printing objects, NSLog
>takes exactly the same arguments as printf, so you can find out all knids
>of things about it by typing "man 3 printf" in the Terminal.
I don't have any section 3 manpages at all - where do they all live in
the 10.3 developer tools?
I've got manpages for system calls, but not C library functions.
Tim
David Phillip Oster - 26 May 2005 17:11 GMT
> I don't have any section 3 manpages at all - where do they all live in
> the 10.3 developer tools?
From Terminal, type:
man man.conf
for information on where the manpages live.

Signature
David Phillip Oster
Tim Cutts - 27 May 2005 13:47 GMT
>> I don't have any section 3 manpages at all - where do they all live in
>> the 10.3 developer tools?
[quoted text clipped - 4 lines]
>
>for information on where the manpages live.
13:43:55 tim@deimos:~$ man man.conf
No manual entry for man.conf
There's a manpath.config file, but no manpage for that either. And I've
done a locate on the entire filesystem, and there just isn't a manpage
for fopen() for example.
Tim
Michael Ash - 27 May 2005 14:54 GMT
>>> I don't have any section 3 manpages at all - where do they all live in
>>> the 10.3 developer tools?
[quoted text clipped - 11 lines]
> done a locate on the entire filesystem, and there just isn't a manpage
> for fopen() for example.
I found some info in this mailing list post:
http://lists.apple.com/archives/darwin-dev/2004/Sep/msg00048.html
The man pages are installed by the BSD.pkg on your main OS X CDs.
Apparently it's possible to extract just the man pages from this package.
The post suggests using /bin/pax, and there's also a tool called Pacifist
which might do the job.