MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / Copy

Method Copy

Source/Utility/String.h:418–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416 }
417
418 void Copy( const char * string )
419 {
420 if ( string == NULL )
421 {
422 if ( mMaxLength == 0 )
423 {
424 Size( 0 );
425 }
426
427 strcpy( mpString, "" );
428 }
429 else
430 {
431 u32 length( strlen( string ) );
432
433 if ( length > mMaxLength )
434 {
435 Size( length );
436 }
437
438 strcpy( mpString, string );
439 }
440 }
441
442 void Append( const char * string )
443 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected