MCPcopy Create free account
hub / github.com/JACoders/OpenJK / CL_SE_GetStringTextString

Function CL_SE_GetStringTextString

codemp/client/cl_cgameapi.cpp:456–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456static qboolean CL_SE_GetStringTextString( const char *text, char *buffer, int bufferLength ) {
457 const char *str;
458
459 assert( text && buffer );
460
461 str = SE_GetString( text );
462
463 if ( str[0] ) {
464 Q_strncpyz( buffer, str, bufferLength );
465 return qtrue;
466 }
467
468 Com_sprintf( buffer, bufferLength, "??%s", str );
469 return qfalse;
470}
471
472static void CL_G2API_ListModelSurfaces( void *ghlInfo ) {
473 re->G2API_ListSurfaces( (CGhoul2Info *)ghlInfo );

Callers 1

CL_CgameSystemCallsFunction · 0.70

Calls 3

Q_strncpyzFunction · 0.85
SE_GetStringFunction · 0.50
Com_sprintfFunction · 0.50

Tested by

no test coverage detected