mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-03 02:41:08 +00:00
parent
584a0da932
commit
eb1f379d14
@ -1045,7 +1045,11 @@ R_API int r_str_nlen(const char *str, int n) {
|
||||
|
||||
// Length in chars of a wide string (find better name?)
|
||||
R_API int r_wstr_clen (const char *s) {
|
||||
return wcslen((wchar_t*) s);
|
||||
int len = 0;
|
||||
if (*s++ == 0) return 0;
|
||||
while (*s++ || *s++)
|
||||
len++;
|
||||
return len+1;
|
||||
}
|
||||
|
||||
R_API const char *r_str_ansi_chrn(const char *str, int n) {
|
||||
|
Loading…
Reference in New Issue
Block a user