MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / tmrec_parse

Function tmrec_parse

time_rec.c:1651–1667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1649
1650
1651tmrec *tmrec_parse(const char *tr, char alloc)
1652{
1653 tmrec_p time_rec;
1654
1655 time_rec = tmrec_new(alloc);
1656 if (!time_rec) {
1657 LM_ERR("oom\n");
1658 return NULL;
1659 }
1660
1661 if (_tmrec_parse(tr, time_rec) < 0) {
1662 tmrec_free(time_rec);
1663 return NULL;
1664 }
1665
1666 return (tmrec *)time_rec;
1667}
1668
1669
1670int _tmrec_check(const tmrec *_tr, time_t time)

Callers

nothing calls this directly

Calls 3

tmrec_newFunction · 0.85
_tmrec_parseFunction · 0.85
tmrec_freeFunction · 0.85

Tested by

no test coverage detected