MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey-v1.0 / LoopReadFileStruct

Method LoopReadFileStruct

Source/script.h:441–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439 #define READ_FILE_LINE_SIZE (64 * 1024) // This is also used by FileReadLine().
440 char mCurrentLine[READ_FILE_LINE_SIZE];
441 LoopReadFileStruct(FILE *aReadFile, char *aWriteFileName)
442 : mReadFile(aReadFile), mWriteFile(NULL) // mWriteFile is opened by FileAppend() only upon first use.
443 {
444 // Use our own buffer because caller's is volatile due to possibly being in the deref buffer:
445 strlcpy(mWriteFileName, aWriteFileName, sizeof(mWriteFileName));
446 *mCurrentLine = '\0';
447 }
448};
449
450

Callers

nothing calls this directly

Calls 1

strlcpyFunction · 0.85

Tested by

no test coverage detected