Monday, March 19, 2007

Man-tastic

Wow, I just realized that you can get information on the PTHREAD C library using the man command at a unix terminal. I had been searching the Internet with variable results, when it turns out all I have to do is type:

man pthread_self

and this can be done for any of the pthread library functions. Nice.

4 comments:

  1. That's one of the nice things about coding in C -- pretty much everything has a man page.

    ReplyDelete
  2. Well I guess this is why C/C++ APIs seem so poorly documented on the web; because everyone must already just be using the man pages. Am I the only one who didn't know about this?

    ReplyDelete
  3. Pthread.

    Every time I looked at this word it said pothead. Go figure.

    ReplyDelete
  4. We are almost that cool here at CMU.

    ReplyDelete