Postgresql Split String Function In C