Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Standard Library Documentation

Standard Library Documentation
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 21, 2003, 08:10 PM
 
Where can I find documentation for standard C/POSIX stuff in PB? I couldn't even get it to find printf for example.

What I really need is something equivalent to Thread.sleep(n) in java, which sleeps for n milliseconds before continuuing execution. I have tried all of Apple's online books but those are too verbose and not detailed enough.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 21, 2003, 09:44 PM
 
/usr/share/man/man3 is probably your best bet.

man 3 sleep and man 3 usleep should provide you with what you need. You might also be interested in man pthread.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 21, 2003, 09:48 PM
 
If you're working with Foundation, you should probably look at NSThread sleepUntilDate:.
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 21, 2003, 10:58 PM
 
Originally posted by int69h:
/usr/share/man/man3 is probably your best bet.

man 3 sleep and man 3 usleep should provide you with what you need. You might also be interested in man pthread.
Thanks for the help. I didn't think to try man, and when I added different headers to my project I noticed that more results started to appear in the documentation viewer. sleep(int) did the trick.

My problem with the man pages is I don't have someplace to search for topics that I don't really know much about (as in this case), since I don't really have any good keywords to lookup.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 21, 2003, 11:35 PM
 
I usually turn to Advanced Programming in the UNIX Environment and The C Programming Language when I find myself in that situation. Both are worth their weight in gold.
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jan 22, 2003, 04:26 AM
 
Originally posted by absmiths:
Thanks for the help. I didn't think to try man, and when I added different headers to my project I noticed that more results started to appear in the documentation viewer. sleep(int) did the trick.

My problem with the man pages is I don't have someplace to search for topics that I don't really know much about (as in this case), since I don't really have any good keywords to lookup.
How about apropos?
[Wevah setPostCount:[Wevah postCount] + 1];
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Jan 22, 2003, 10:08 AM
 
Originally posted by Wevah:
How about apropos?
Yet another unix tool that I knew nothing about. Although, ironically enough, it has no man page.
     
Dedicated MacNNer
Join Date: Nov 2000
Status: Offline
Reply With Quote
Jan 22, 2003, 06:31 PM
 
apropos == man -k
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:05 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2