All pastes #367653 Raw Edit

Mine

public text v1 · immutable
#367653 ·published 2007-02-22 14:15 UTC
rendered paste body
if (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';
}