mem_log.cpp
// Return true iff string s begins with the given prefix.
Return true iff string s begins with the given prefix.
Return true iff string s begins with the given prefix .
bool starts_with(const char *s, const char *prefix)
    {
        while (*prefix)
        {
            if (*prefix++ != *s++)
            {
                return false;
            }
        }
        return true;
    }
bool starts_with ( const char * s , const char * prefix ) { while ( * prefix ) { if ( * prefix ++ != * s ++ ) { return false ; } } return true ; }
Return true iff string s begins with the given prefix.
Return true iff string s begins with the given prefix .