openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/basic/string-util.h
static inline void* memory_startswith(const void* p, size_t sz,
                                      const char* token)
{
    size_t n;

    assert(token);

    n = strlen(token);
    if (sz < n)
        return NULL;

    assert(p);

    if (memcmp(p, token, n) != 0)
        return NULL;

    return (uint8_t*)p + n;
}
/* Like startswith(), but operates on arbitrary memory blocks */
Like startswith(), but operates on arbitrary memory blocks
Like startswith () but operates on arbitrary memory blocks
static inline void* memory_startswith(const void* p, size_t sz,
                                      const char* token)
{
    size_t n;
    assert(token);
    n = strlen(token);
    if (sz < n)
        return NULL;
    assert(p);
    if (memcmp(p, token, n) != 0)
        return NULL;
    return (uint8_t*)p + n;
}
static inline void * memory_startswith ( const void * p , size_t sz , const char * token ) { size_t n ; assert ( token ) ; n = strlen ( token ) ; if ( sz < n ) return NULL ; assert ( p ) ; if ( memcmp ( p , token , n ) != 0 ) return NULL ; return ( uint8_t * ) p + n ; }
Like startswith(), but operates on arbitrary memory blocks
Like startswith () but operates on arbitrary memory blocks