[lkml]   [2012]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] ACPI: replace strlen("string") with sizeof("string") -1
    Len Brown <> writes:

    > ...both give the number of chars in the string
    > without the '\0', as strncmp() wants,
    > but sizeof() is compile-time.

    Does this actually change anything? The compiler is able to expand
    strlen at compile time if the argument is a constant, provided that that
    builtin strlen isn't disabled.


    Andreas Schwab,
    GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
    "And now for something completely different."

     \ /
      Last update: 2012-08-06 13:03    [W:0.038 / U:1.588 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site