posix thread help

I am working on a producer/consumer problem and need a little help on calling my functions in a posix thread. What would be the correct syntax for calling producer?

Nothing seems to be working for me today. I have had to delete all my curly braces from from my code in order for it to let me post. When I left them in it kept telling me to use code tags, which I was already using.

> I have had to delete all my curly braces from from my code in order for it to let me post.
NO!
That's to encourage you to use code tags - which you seem to have done.
Curly brackets outside of [code][/code] tags are disallowed.

Then the call to create a thread is
pthread_create(&thread1, NULL, producer, NULL) ;

The 4th parameter to pthread_create() gets passed as the first parameter to producer() when it eventually gets called as a thread. Use this when you have some information you want to pass to your thread.