Ignore:
Timestamp:
2019-02-05T18:26:05Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1d2f85e
Parents:
d066259
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
Message:

Use clearer naming for string length functions

This and the following commit change the names of functions, as well as
their documentation, to use unambiguous terms "bytes" and "code points"
instead of ambiguous terms "size", "length", and "characters".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/cp/cp.c

    rd066259 r08e103d4  
    188188        dentry_type_t dest_type = get_type(dest);
    189189
    190         const size_t src_len = str_size(src);
     190        const size_t src_len = str_bytes(src);
    191191
    192192        if (src_type == TYPE_FILE) {
     
    214214                        dest_type = get_type(dest_path);
    215215                } else if (dest_type == TYPE_NONE) {
    216                         if (dest_path[str_size(dest_path) - 1] == '/') {
     216                        if (dest_path[str_bytes(dest_path) - 1] == '/') {
    217217                                /* e.g. cp /textdemo /data/dirnotexists/ */
    218218
Note: See TracChangeset for help on using the changeset viewer.