From 10374ca23413c7e2f85a8b773f90250b5408195e Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 3 Nov 2023 18:13:05 +0100 Subject: add steccpy --- README | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 333a6b0..5776228 100644 --- a/README +++ b/README @@ -9,6 +9,9 @@ SYNOPSIS char * 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); @@ -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 -- cgit 1.4.1