Modify autocomplete in c