Postgres String Functions In C