Re: [Libclc-developers] String functions so far
Status: Planning
Brought to you by:
augestad
|
From: Hallvard B F. <h.b...@us...> - 2003-03-22 14:53:21
|
Hallvard B Furuseth writes: > clc_strendcpy() returns a pointer to the terminating null character > in dst, or to end (i.e. one past the null) if the string was > truncated. It return dst if end >= dst. Would it be better to return end if end >= dst? Then one could check for truncation with 'ret == end' instead of 'ret >= end', which is slightly nicer. Are there any disadvantages with returning end in this case? > clc_strnorm - remove duplicate/surrounding whitespace from string I thought we were to rename this function to something else? Chuck suggested clc_compactws(), David clc_normws(). My vote is for clc_compactws, unless someone has a better name. > clc_strlwr - convert string in place to lowercase > clc_strupr - convert string in place to uppercase clc_strlower and clc_strupper is easier to read, and still short enough. But I think these were deliberately made short in a comp.lang.c thread, so maybe that discussion belongs on comp.lang.c. -- Hallvard |