Adding ex1-9.c

Signed-off-by: Simarpreet Singh <simarpreet.singh@windriver.com>