MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / set_hdr_str

Function set_hdr_str

src/burp/split/spit.cpp:1351–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349
1350
1351static int set_hdr_str(TEXT header_str[], const TEXT* in_str, SLONG pos, SLONG len)
1352{
1353/********************************************************************
1354**
1355** s e t _ h d r _ s t r
1356**
1357*********************************************************************
1358**
1359** Functional description:
1360**
1361** initialyze header string
1362**
1363*********************************************************************
1364*/
1365 const TEXT* t_str = in_str;
1366 const SLONG end = pos + len;
1367
1368 for (SLONG indx = pos; indx < end; indx++)
1369 {
1370 switch (*t_str)
1371 {
1372 case NEW_LINE:
1373 case TERMINAL:
1374 header_str[indx] = ' ';
1375 break;
1376 default:
1377 header_str[indx] = *t_str;
1378 break;
1379 }
1380 ++t_str;
1381 }
1382 return FB_SUCCESS;
1383}
1384
1385
1386static int free_file_list( b_fil* file_list)

Callers 2

gen_multy_bakup_filesFunction · 0.85
write_headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected