Postgresql Get First Character String Types In C