MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / GetLine

Method GetLine

source/Debugger/Util_MemoryTextFile.cpp:64–73  ·  view source on GitHub ↗

===========================================================================

Source from the content-addressed store, hash-verified

62
63//===========================================================================
64void MemoryTextFile_t::GetLine( const int iLine, char *pLine, const int nMaxLineChars )
65{
66 if (m_bDirty)
67 {
68 GetLinePointers();
69 }
70
71 memset( pLine, 0, nMaxLineChars );
72 strncpy( pLine, m_vLines[ iLine ], nMaxLineChars-1 );
73}
74
75
76// cr/new lines are converted into null, string terminators

Callers 5

DrawSourceLineFunction · 0.45
CmdSymbolsLoadFunction · 0.45
ConfigSave_BufferToDiskFunction · 0.45
CmdOutputRunFunction · 0.45
ParseAssemblyListingFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected