cvs commit: src/lib/libc/string strcasecmp.c

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 29 09:14:36 PDT 2005


dillon      2005/04/29 09:12:52 PDT

DragonFly src repository

  Modified files:
    lib/libc/string      strcasecmp.c 
  Log:
  Final forced commit to correct log comments.  char's are *signed*, not
  unsigned.  However, most string operations must do unsigned comparisons.
  The CTYPE API is expected to properly fold signed chars when making
  conversions but if a call does not do a conversion, e.g. tolower() on a
  character which is not upper case, the original contents (negative or
  positive) may be returned.
  
  This means that we can safely use signed chars everywhere *except* when
  we have to do an inequality.
  
  Revision  Changes    Path
  1.8       +0 -0      src/lib/libc/string/strcasecmp.c


http://www.dragonflybsd.org/cvsweb/src/lib/libc/string/strcasecmp.c.diff?r1=1.7&r2=1.8&f=u





More information about the Commits mailing list