diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-01-26 10:45:52 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-01-26 10:45:52 +0000 |
commit | f93f4b87a492ba5dff2854813463ca6fc419b393 (patch) | |
tree | bf9679e2bcdd699acbf7b3c285f49e8ecc54281d /pjsip | |
parent | c0fdb7a7f1e264d0983e765873cfa6e26decc6c8 (diff) |
Added pj_strstr() and pj_stristr() in pjlib
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1757 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_call.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_call.c b/pjsip/src/pjsua-lib/pjsua_call.c index f4e90aa8..8638a806 100644 --- a/pjsip/src/pjsua-lib/pjsua_call.c +++ b/pjsip/src/pjsua-lib/pjsua_call.c @@ -255,21 +255,6 @@ static pjsua_call_id alloc_call_id(void) return PJSUA_INVALID_ID; } -static pj_bool_t pj_stristr(const pj_str_t *str, const pj_str_t *substr) -{ - int i; - - for (i=0; i<=(str->slen-substr->slen); ++i) { - pj_str_t s; - s.ptr = str->ptr+i; - s.slen = substr->slen; - - if (pj_stricmp(&s, substr)==0) - return PJ_TRUE; - } - return PJ_FALSE; -} - /* Get signaling secure level. * Return: * 0: if signaling is not secure |