about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-11-03 18:13:05 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-11-03 18:13:05 +0100
commit6cd51d52e177314a68c6c2f6c598798136ba1b52 (patch)
treeaa9053881d115610550f3a55f2e0fb64773f231a /README
parentfce8d1ec3329a97fc8886cf71eb3d1a763d71ad7 (diff)
downloadlibste-master.tar.gz
libste-master.tar.xz
libste-master.zip
add steccpy HEAD master
Diffstat (limited to 'README')
-rw-r--r--README10
1 files changed, 9 insertions, 1 deletions
diff --git a/README b/README
index 333a6b0..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