MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / gettextcode

Function gettextcode

source/syslog.cpp:67–75  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

65};
66//---------------------------------------------------------------------------
67int gettextcode(const char * value, CODE * codetable)
68{
69 CODE *i;
70 if (value)
71 for (i = codetable; i->c_val != -1; i++)
72 if (strcmp(i->c_name, value)==0)
73 return (i->c_val);
74 return -1;
75}
76//---------------------------------------------------------------------------
77void GetPriorities(TStrings * s)
78{

Callers 1

FromStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected