openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/template.c
struct template* tplFind(rsconf_t* conf, char* pName, int iLenName)
{
    struct template* pTpl;

    assert(pName != NULL);

    pTpl = conf->templates.root;
    while (pTpl != NULL &&
           !(pTpl->iLenName == iLenName && !strcmp(pTpl->pszName, pName)))
    {
        pTpl = pTpl->pNext;
    }
    return (pTpl);
}
/* Find a template object based on name. Search
 * currently is case-sensitive (should we change?).
 * returns pointer to template object if found and
 * NULL otherwise.
 * rgerhards 2004-11-17
 */
Find a template object based on name. Search
currently is case-sensitive (should we change?).
returns pointer to template object if found and
NULL otherwise.
Find a template object based on name . Search currently is case - sensitive ( should we change? ) . returns pointer to template object if found and NULL otherwise .
struct template* tplFind(rsconf_t* conf, char* pName, int iLenName)
{
    struct template* pTpl;
    assert(pName != NULL);
    pTpl = conf->templates.root;
    while (pTpl != NULL &&
           !(pTpl->iLenName == iLenName && !strcmp(pTpl->pszName, pName)))
    {
        pTpl = pTpl->pNext;
    }
    return (pTpl);
}
struct template * tplFind ( rsconf_t * conf , char * pName , int iLenName ) { struct template * pTpl ; assert ( pName != NULL ) ; pTpl = conf -> templates . root ; while ( pTpl != NULL && ! ( pTpl -> iLenName == iLenName && ! strcmp ( pTpl -> pszName , pName ) ) ) { pTpl = pTpl -> pNext ; } return ( pTpl ) ; }
Find a template object based on name.
Find a template object based on name .