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

Function get_file_name

src/burp/split/spit.cpp:435–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433
434
435static int get_file_name( const SCHAR* string, SINT64 file_size, b_fil** file_ptr)
436{
437/********************************************************************
438**
439** g e t _ f i l e _ n a m e
440**
441*********************************************************************
442**
443** Functional description:
444**
445** processing file name specification and returns file structure
446** pointer.
447**
448*********************************************************************
449*/
450
451 b_fil* const temp_ptr = (b_fil*) malloc(b_fil_len);
452
453 *file_ptr = temp_ptr;
454 temp_ptr->b_fil_name = (TEXT*) malloc(strlen(string) + 1);
455
456 temp_ptr->b_fil_next = NULL;
457 strcpy(temp_ptr->b_fil_name, string);
458 temp_ptr->b_fil_number = 0;
459 temp_ptr->b_fil_size = file_size;
460
461 return FB_SUCCESS;
462}
463
464
465static int get_file_size(const SCHAR* prog_name, const SCHAR* string, SINT64* file_size)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected