| 433 | |
| 434 | |
| 435 | static 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 | |
| 465 | static int get_file_size(const SCHAR* prog_name, const SCHAR* string, SINT64* file_size) |