main/ims_ota.c
/*read buffer by byte still delim, return read bytes counts*/
read buffer by byte still delim, return read bytes counts
read buffer by byte still delim return read bytes counts
int read_until(char *buffer, char delim, int len)
{
    int i = 0;
    while (buffer[i] != delim && i < len) {
        ++i;
    }
    return i + 1;
}
int read_until ( char * buffer , char delim , int len ) { int i = 0 ; while ( buffer [ i ] != delim && i < len ) { ++ i ; } return i + 1 ; }
read buffer by byte still delim, return read bytes counts
read buffer by byte still delim return read bytes counts