Files
app-ethereum/tests/unit/demo_tu.c
Coline 16ddb1e67d feat: TU demo .c
fix: TU demo

fix: TU demo
2022-07-20 15:53:50 +02:00

12 lines
250 B
C

#include <string.h>
int local_strchr_demo(char *string, char ch) {
unsigned int length = strlen(string);
unsigned int i;
for (i = 0; i < length; i++) {
if (string[i] == ch) {
return i;
}
}
return -1;
}