===========================================================================
| 62 | |
| 63 | //=========================================================================== |
| 64 | void 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 |
no outgoing calls
no test coverage detected