MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / fixSpaceNewLine

Function fixSpaceNewLine

source/menu-entry.c:119–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119static void fixSpaceNewLine(char* buf)
120{
121 char *outp = buf, *inp = buf;
122 char lastc = 0;
123 do
124 {
125 char c = *inp++;
126 if (c == ' ' && lastc == ' ')
127 outp[-1] = '\n';
128 else
129 *outp++ = c;
130 lastc = c;
131 } while (lastc);
132}
133
134void menuEntryFileAssocLoad(const char* filepath)
135{

Callers 1

menuEntryLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected