Modifying Qos profiles C example

Modified Qos profiles C example according to standars coding style and
similar to C++ example.