MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / PrintText

Function PrintText

deps/SDL2/test/checkkeys.c:137–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static void
138PrintText(char *eventtype, char *text)
139{
140 char *spot, expanded[1024];
141
142 expanded[0] = '\0';
143 for ( spot = text; *spot; ++spot )
144 {
145 size_t length = SDL_strlen(expanded);
146 SDL_snprintf(expanded + length, sizeof(expanded) - length, "\\x%.2x", (unsigned char)*spot);
147 }
148 SDL_Log("%s Text (%s): \"%s%s\"\n", eventtype, expanded, *text == '"' ? "\\" : "", text);
149}
150
151void
152loop()

Callers 1

loopFunction · 0.85

Calls 3

SDL_strlenFunction · 0.85
SDL_snprintfFunction · 0.85
SDL_LogFunction · 0.85

Tested by

no test coverage detected