working on c version of string kernel