Add C code for string_length (equivalent?)