C client: create index