MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / String_IndexOfAt

Function String_IndexOfAt

src/String.c:288–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286
287
288int String_IndexOfAt(const cc_string* str, int offset, char c) {
289 int i;
290 for (i = offset; i < str->length; i++) {
291 if (str->buffer[i] == c) return i;
292 }
293 return -1;
294}
295
296int String_LastIndexOfAt(const cc_string* str, int offset, char c) {
297 int i;

Callers 2

String_UNSAFE_SplitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected