about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README12
1 files changed, 10 insertions, 2 deletions
diff --git a/README b/README
index 79a04b8..5776228 100644
--- a/README
+++ b/README
@@ -10,6 +10,9 @@ SYNOPSIS
      stecpy(char *dst, char *end, const char *src);
 
      char *
+     steccpy(char *dst, char *end, const char *src, int c);
+
+     char *
      stecpe(char *dst, char *end, const char *src, const char *srcend);
 
      char *
@@ -19,13 +22,18 @@ SYNOPSIS
      steprn(char *dst, char *end, const char *fmt, ...);
 
 DESCRIPTION
-     libste provides four useful functions for dealing with strings.
+     libste provides five useful functions for dealing with strings.
 
      stecpy copies the NUL-terminated string src to dst, but writes no
      characters beyond end.  If any characters are copied, dst will be NUL-
      terminated and the return value is a pointer to the NUL byte.  On
      truncation, end is returned.
 
+     steccpy copies the NUL-terminated string src to dst, stopping when the
+     character c is found.  It writes no characters beyond end.  If any
+     characters are copied, dst will be NUL-terminated and the return value is
+     a pointer to the NUL byte.  On truncation, end is returned.
+
      stecpe copies the string between src and srcend to dst, but writes no
      characters beyond end.  If any characters are copied, dst will be NUL-
      terminated and the return value is a pointer to the NUL byte.  On
@@ -33,7 +41,7 @@ DESCRIPTION
 
      stechr returns a pointer to the first occurence of c (converted to a
      char) in the NUL-terminated string pointed to by src, but reads no
-     characters beyond end.  If c is not found, stecpy returns a pointer to
+     characters beyond end.  If c is not found, stechr returns a pointer to
      the first NUL byte in src, or end if none was found.
 
      steprn uses vsnprintf(3) to write formatted output to dst, but writes no