| | |
| | | int c; |
| | | Report *rpt = &pr->report; |
| | | |
| | | // Check that project's report file exists |
| | | //if (rpt->RptFile == NULL) return 0; |
| | | //Check that project's report file exists |
| | | if (rpt->RptFile == NULL) return 0; |
| | | |
| | | //// Open the new destination file |
| | | //tfile = fopen(filename, "w"); |
| | | //if (tfile == NULL) return 303; |
| | | // Open the new destination file |
| | | tfile = fopen(filename, "w"); |
| | | if (tfile == NULL) return 303; |
| | | |
| | | //// Re-open project's report file in read mode |
| | | //fclose(rpt->RptFile); |
| | | //rpt->RptFile = fopen(rpt->Rpt1Fname, "r"); |
| | | // Re-open project's report file in read mode |
| | | fclose(rpt->RptFile); |
| | | rpt->RptFile = fopen(rpt->Rpt1Fname, "r"); |
| | | |
| | | //// Copy contents of project's report file |
| | | //if (rpt->RptFile) |
| | | //{ |
| | | // while ((c = fgetc(rpt->RptFile)) != EOF) fputc(c, tfile); |
| | | // fclose(rpt->RptFile); |
| | | //} |
| | | // Copy contents of project's report file |
| | | if (rpt->RptFile) |
| | | { |
| | | while ((c = fgetc(rpt->RptFile)) != EOF) fputc(c, tfile); |
| | | fclose(rpt->RptFile); |
| | | } |
| | | |
| | | //// Close destination file |
| | | //fclose(tfile); |
| | | // Close destination file |
| | | fclose(tfile); |
| | | |
| | | // Re-open project's report file in append mode |
| | | /*rpt->RptFile = fopen(rpt->Rpt1Fname, "a"); |
| | | if (rpt->RptFile == NULL) return 303;*/ |
| | | rpt->RptFile = fopen(rpt->Rpt1Fname, "a"); |
| | | if (rpt->RptFile == NULL) return 303; |
| | | return 0; |
| | | } |
| | | |
| | |
| | | { |
| | | //白云飞修改 |
| | | //return; |
| | | Report *rpt = &pr->report; |
| | | //将字符串s的内容,添加到pr->MsgText最后并换行 |
| | | strcat(pr->MsgText, s); |
| | | strcat(pr->MsgText, "\n"); |
| | | |
| | | |
| | | |
| | | Report *rpt = &pr->report; |
| | | if (rpt->RptFile == NULL) return; |
| | | if (rpt->Rptflag) |
| | | { |
| | |
| | | */ |
| | | { |
| | | //白云飞修改 |
| | | return; |
| | | //return; |
| | | Report *rpt = &pr->report; |
| | | Times *time = &pr->times; |
| | | |
| | |
| | | */ |
| | | { |
| | | //白云飞修改 |
| | | return; |
| | | //return; |
| | | Network *net = &pr->network; |
| | | Report *rpt = &pr->report; |
| | | Times *time = &pr->times; |
| | |
| | | */ |
| | | { |
| | | //白云飞修改 |
| | | return; |
| | | //return; |
| | | Network *net = &pr->network; |
| | | Report *rpt = &pr->report; |
| | | Times *time = &pr->times; |
| | |
| | | */ |
| | | { |
| | | //[Cloudflight修订] 2023年6月5日 17:15:50 |
| | | return; |
| | | //return; |
| | | Network *net = &pr->network; |
| | | Report *rpt = &pr->report; |
| | | Times *time = &pr->times; |