C version of asynchronous publisher example
Fixed compile error