MCPcopy Create free account
hub / github.com/creatale/node-dv / strcodeCreate

Function strcodeCreate

deps/leptonica/src/stringcode.c:155–172  ·  view source on GitHub ↗

---------------------------------------------------------------------*/ Stringcode functions */ ---------------------------------------------------------------------*/ ! * \brief strcodeCreate() * * \param[in] fileno integer that labels the two output files * \return initialized L_StrCode, or NULL on error * * * Notes: * (1) This struct exists to bui

Source from the content-addressed store, hash-verified

153 * </pre>
154 */
155L_STRCODE *
156strcodeCreate(l_int32 fileno)
157{
158L_STRCODE *strcode;
159
160 PROCNAME("strcodeCreate");
161
162 lept_mkdir("lept/auto");
163
164 if ((strcode = (L_STRCODE *)LEPT_CALLOC(1, sizeof(L_STRCODE))) == NULL)
165 return (L_STRCODE *)ERROR_PTR("strcode not made", procName, NULL);
166
167 strcode->fileno = fileno;
168 strcode->function = sarrayCreate(0);
169 strcode->data = sarrayCreate(0);
170 strcode->descr = sarrayCreate(0);
171 return strcode;
172}
173
174
175/*!

Callers 1

strcodeCreateFromFileFunction · 0.85

Calls 2

lept_mkdirFunction · 0.85
sarrayCreateFunction · 0.85

Tested by

no test coverage detected