lib/json/src/json_util.c
/* this goes backward in the buffer one character */
this goes backward in the buffer one character
this goes backward in the buffer one character
char
json_read_prev(struct json_buffer * jb)
{
    json_decoder_t * decoder = (json_decoder_t *) jb;
    char c;
    if (decoder->current_position) {
       decoder->current_position--;
       c = *(decoder->start_buf + decoder->current_position);
       return c;
    }
    return '\0';
}
char json_read_prev ( struct json_buffer * jb ) { json_decoder_t * decoder = ( json_decoder_t * ) jb ; char c ; if ( decoder -> current_position ) { decoder -> current_position -- ; c = * ( decoder -> start_buf + decoder -> current_position ) ; return c ; } return ' \0 ' ; }
this goes backward in the buffer one character
this goes backward in the buffer one character
/* can't rewind */