Mine
public text v1 · immutableif (s[0] != '#') {
int i = j = 0;
c = 0;
eq_flag = 0;
while (c < sizeof(s) && s[c] != '\n') {
if (s[c] != '=' && eq_flag == 0) {
/**
* Till we don't hit =, we put everything
* in a temp char var.
*/
temp_read[i++] = s[c];
} else {
/**
* We hit a =, go to next char and set the value
*/
eq_flag = 1;
temp_val[j++] = c;
}
c++;
}
temp_read[i] = '\0';
temp_val[j] = '\0';
}