MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / Printf

Function Printf

examples/example_chat.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void Printf( const char *fmt, ... )
81{
82 char text[ 2048 ];
83 va_list ap;
84 va_start( ap, fmt );
85 vsprintf( text, fmt, ap );
86 va_end(ap);
87 char *nl = strchr( text, '\0' ) - 1;
88 if ( nl >= text && *nl == '\n' )
89 *nl = '\0';
90 DebugOutput( k_ESteamNetworkingSocketsDebugOutputType_Msg, text );
91}
92
93static void InitSteamDatagramConnectionSockets()
94{

Callers 7

LocalUserInput_InitFunction · 0.70
RunMethod · 0.70
PollLocalUserInputMethod · 0.70
RunMethod · 0.70
PollLocalUserInputMethod · 0.70

Calls 1

DebugOutputFunction · 0.70

Tested by

no test coverage detected