c pattern