Changeset b2906c0 in mainline for uspace/srv/fs/exfat/exfat_dentry.c


Ignore:
Timestamp:
2017-07-11T18:44:04Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f3504c1
Parents:
9bf4488
Message:

One function to compute the number of code units in a UTF-16 null-terminated string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_dentry.c

    r9bf4488 rb2906c0  
    130130}
    131131
    132 size_t exfat_utf16_length(const uint16_t *wstr)
    133 {
    134         size_t len = 0;
    135        
    136         while (*wstr++ != 0)
    137                 len++;
    138        
    139         return len;
    140 }
    141 
    142132/**
    143133 * @}
Note: See TracChangeset for help on using the changeset viewer.