mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
word_wrap - Dont' call strlen once every loop iteration
This commit is contained in:
parent
c70b8c42c5
commit
bb15b14388
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue