mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
word_wrap - Dont' call strlen once every loop iteration
This commit is contained in:
parent
c70b8c42c5
commit
bb15b14388
@ -167,9 +167,10 @@ char *string_trim_whitespace(char *const s)
|
||||
|
||||
char* word_wrap(char* buffer, char* string, int line_width)
|
||||
{
|
||||
unsigned i = 0;
|
||||
unsigned i = 0;
|
||||
unsigned len = strlen(string);
|
||||
|
||||
while(i < strlen(string))
|
||||
while (i < len)
|
||||
{
|
||||
unsigned counter;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user