DragonFly BSD
DragonFly commits List (threaded) for 2013-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: libc: Add strchrnul(), a glibc extension


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Mar 2013 02:52:00 -0800 (PST)

commit 8fd2f2436da10f369a452cf69f85b233a09c02f5
Author: François Tigeot <ftigeot@wolfpond.org>
Date:   Sun Mar 3 20:04:26 2013 +0100

    libc: Add strchrnul(), a glibc extension
    
    * This function behaves like strchr() but returns a pointer to the
      terminating \0 byte of the string instead of NULL if the character
      was not found
    
    * It was first implemented in glibc-2.1.1
    
    Obtained-from: FreeBSD

Summary of changes:
 include/string.h                           |  1 +
 lib/libc/string/Makefile.inc               |  6 ++++--
 lib/libc/string/strchr.3                   | 32 ++++++++++++++++++++++++++----
 lib/libc/string/{strnlen.c => strchrnul.c} | 19 +++++++++---------
 4 files changed, 43 insertions(+), 15 deletions(-)
 copy lib/libc/string/{strnlen.c => strchrnul.c} (83%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8fd2f2436da10f369a452cf69f85b233a09c02f5


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]