lkml.org 
[lkml]   [2020]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 5/5] gpio: uapi: clarify the meaning of 'empty' char arrays
    On Mon, Oct 5, 2020 at 10:07 AM Kent Gibson <warthog618@gmail.com> wrote:
    >
    > Clarify that a char array containing a string is considered 'empty' if
    > the first character is the null terminator. The remaining characters
    > are not relevant to this determination.

    > * @label: a functional name for this GPIO chip, such as a product
    > - * number, may be empty
    > + * number, may be empty (i.e. label[0] == '\0')

    I would rather put it like
    "...may be empty string (i.e. label == "")"

    And so on for the rest.

    --
    With Best Regards,
    Andy Shevchenko

    \
     
     \ /
      Last update: 2020-10-05 13:02    [W:4.066 / U:0.340 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site