openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/attr.c
int nla_memcpy(void* dest, const struct nlattr* src, int count)
{
    int minlen;

    if (!src)
        return 0;

    minlen = min_t(int, count, nla_len(src));
    memcpy(dest, nla_data(src), minlen);

    return minlen;
}
/**
 * Copy attribute payload to another memory area.
 * @arg dest		Pointer to destination memory area.
 * @arg src		Attribute
 * @arg count		Number of bytes to copy at most.
 *
 * Note: The number of bytes copied is limited by the length of
 *       the attribute payload.
 *
 * @return The number of bytes copied to dest.
 */
Copy attribute payload to another memory area.
@arg dest            Pointer to destination memory area.
@arg src             Attribute
@arg count           Number of bytes to copy at most.

The number of bytes copied is limited by the length of
the attribute payload.

@return The number of bytes copied to dest.
Copy attribute payload to another memory area . @arg dest Pointer to destination memory area . @arg src Attribute @arg count Number of bytes to copy at most . The number of bytes copied is limited by the length of the attribute payload . @return The number of bytes copied to dest .
int nla_memcpy(void* dest, const struct nlattr* src, int count)
{
    int minlen;
    if (!src)
        return 0;
    minlen = min_t(int, count, nla_len(src));
    memcpy(dest, nla_data(src), minlen);
    return minlen;
}
int nla_memcpy ( void * dest , const struct nlattr * src , int count ) { int minlen ; if ( ! src ) return 0 ; minlen = min_t ( int , count , nla_len ( src ) ) ; memcpy ( dest , nla_data ( src ) , minlen ) ; return minlen ; }
Copy attribute payload to another memory area.
Copy attribute payload to another memory area .