MCPcopy Create free account
hub / github.com/WheretIB/nullc / SaveFileFromTab

Function SaveFileFromTab

SuperCalc.cpp:641–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641bool SaveFileFromTab(const char *file, const char *data, HWND editWnd)
642{
643 FILE *fSave = fopen(file, "wb");
644 if(!fSave)
645 {
646 if(file[0] != '?')
647 MessageBox(hWnd, "File cannot be saved", "Warning", MB_OK);
648 return false;
649 }else{
650 fwrite(data, 1, strlen(data), fSave);
651 fclose(fSave);
652 }
653 RichTextarea::ValidateHistory(editWnd);
654 return true;
655}
656
657void CloseTabWithFile(TabbedFiles::TabInfo &info)
658{

Callers 3

CloseTabWithFileFunction · 0.85
SuperCalcRunFunction · 0.85
WndProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected