557 {
558 int i;
559
560
561
562 char rootname_c[257];
563 for (i=0;i<*lenr;i++){
564 rootname_c[i]=rootname[i];
565 }
566 rootname_c[*lenr]='\0';
567 string str_rootname(rootname_c);
568
569
570 char path_c[2029];
571 for (i=0;i<*lenp;i++){
572 path_c[i]=path[i];
573 }
574 path_c[*lenp]='\0';
575 string str_path(path_c);
576
577
578
579
580 list<tuple<string,list<string>>> checksum_list;
582 checksum_list=chksum_tool.
chk_list(str_rootname,str_path);
583
584
585
586 const char* blank=" ";
587 int len_blank= strlen(blank);
588
589 for (const auto& item : checksum_list){
590 string filename=
" File. . . . "+get<0>(item);
592 int len_line= strlen(line);
594 int len_blanck=1;
596
597 for (
const auto&
checksum : get<1>(item)){
598 size_t pos =
checksum.find_last_of(
"_");
599 string title=
checksum.substr(0,pos);
600 string digest=
checksum.substr(pos+1);
601 string checksum_line=" "+title+" : "+digest;
602 const char* line=checksum_line.c_str();
603 len_line= strlen(line);
605 }
608 }
609
610 }
std::list< std::tuple< std::string, std::list< std::string > > > chk_list(std::string input, std::string directory)