search for: strncpytolower

Displaying 5 results from an estimated 5 matches for "strncpytolower".

Did you mean: strlcpytolower
2016 Jul 05
7
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...converting the case without specifying a length to mimic strcpy() - converting the case of a string in-place (i.e. modifying the string that was passed in) Consequently, I am proposing these new functions: char *strncpytoupper(char *dst, const char *src, size_t len); char *strncpytolower(char *dst, const char *src, size_t len); char *strcpytoupper(char *dst, const char *src); char *strcpytolower(char *dst, const char *src); char *strtoupper(char *s); char *strtolower(char *s); They all return a pointer to the terminating '\0' in the destination string (for s...
2016 Jul 05
3
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...h to mimic strcpy() >> - converting the case of a string in-place (i.e. modifying the >> string that was passed in) >> >> Consequently, I am proposing these new functions: >> char *strncpytoupper(char *dst, const char *src, size_t len); >> char *strncpytolower(char *dst, const char *src, size_t len); >> char *strcpytoupper(char *dst, const char *src); >> char *strcpytolower(char *dst, const char *src); >> char *strtoupper(char *s); >> char *strtolower(char *s); > > I think there isn't much value in anythi...
2016 Jul 05
0
[PATCH v2 1/7] lib: string: add functions to case-convert strings
...first) seems to be a recurring requirement in the kernel that is currently being solved by several duplicated implementations doing the same thing. This change aims at reducing this code duplication. The new functions are char *strncpytoupper(char *dst, const char *src, size_t len); char *strncpytolower(char *dst, const char *src, size_t len); char *strcpytoupper(char *dst, const char *src); char *strcpytolower(char *dst, const char *src); char *strtoupper(char *s); char *strtolower(char *s); The "str[n]cpyto*" versions of the function take a destination string and a sou...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...  - converting the case of a string in-place (i.e. modifying the > > >       string that was passed in) > > > > > > Consequently, I am proposing these new functions: > > >     char *strncpytoupper(char *dst, const char *src, size_t len); > > >     char *strncpytolower(char *dst, const char *src, size_t len); > > >     char *strcpytoupper(char *dst, const char *src); > > >     char *strcpytolower(char *dst, const char *src); > > >     char *strtoupper(char *s); > > >     char *strtolower(char *s); > > I think there isn...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...ying a >       length to mimic strcpy() >     - converting the case of a string in-place (i.e. modifying the >       string that was passed in) > > Consequently, I am proposing these new functions: >     char *strncpytoupper(char *dst, const char *src, size_t len); >     char *strncpytolower(char *dst, const char *src, size_t len); >     char *strcpytoupper(char *dst, const char *src); >     char *strcpytolower(char *dst, const char *src); >     char *strtoupper(char *s); >     char *strtolower(char *s); I think there isn't much value in anything other than strto<up...