---------------------------------------------------------------------*/ 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
| 153 | * </pre> |
| 154 | */ |
| 155 | L_STRCODE * |
| 156 | strcodeCreate(l_int32 fileno) |
| 157 | { |
| 158 | L_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 | /*! |
no test coverage detected