search for: strcpytoupper

Displaying 18 results from an estimated 18 matches for "strcpytoupper".

2016 Jul 05
3
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...(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<upper|lower>. > > Using str[n]cpy fol...
2016 Jul 08
6
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...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: void strlcpytoupper(char *dst, const char *src, size_t len); void strlcpytolower(char *dst, const char *src, size_t len); void strcpytoupper(char *dst, const char *src); void strcpytolower(char *dst, const char *src); void strtoupper(char *s); void strtolower(char *s); Several drivers are being modified to make use of the functions above. Another driver that also makes use of this functionality will be submitted upstream sh...
2016 Jul 05
7
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...rcpy() - 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 strtoupper() and strtolower() that is "s"). Several dri...
2016 Aug 10
3
[PATCH v5 0/7] lib: string: add functions to case-convert strings
...ic 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: int strlcpytoupper(char *dst, const char *src, size_t len); int strlcpytolower(char *dst, const char *src, size_t len); void strcpytoupper(char *dst, const char *src); void strcpytolower(char *dst, const char *src); void strtoupper(char *s); void strtolower(char *s); Several drivers are being modified to make use of the functions above. Another driver that also makes use of this functionality will be submitted upstream sh...
2016 Jul 22
3
[PATCH v4 0/7] lib: string: add functions to case-convert strings
...ic 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: int strlcpytoupper(char *dst, const char *src, size_t len); int strlcpytolower(char *dst, const char *src, size_t len); void strcpytoupper(char *dst, const char *src); void strcpytolower(char *dst, const char *src); void strtoupper(char *s); void strtolower(char *s); Several drivers are being modified to make use of the functions above. Another driver that also makes use of this functionality will be submitted upstream sh...
2016 Jul 09
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...everal duplicated implementations doing the same thing. This > change aims at reducing this code duplication. > > The new functions are > void strlcpytoupper(char *dst, const char *src, size_t len); > void strlcpytolower(char *dst, const char *src, size_t len); > void strcpytoupper(char *dst, const char *src); > void strcpytolower(char *dst, const char *src); > void strtoupper(char *s); > void strtolower(char *s); > > The "str[l]cpyto*" versions of the function take a destination string > and a source string as arguments. The "str...
2016 Jul 13
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...gt; string that was passed in) > >> > >> Consequently, I am proposing these new functions: > >> void strlcpytoupper(char *dst, const char *src, size_t len); > >> void strlcpytolower(char *dst, const char *src, size_t len); > >> void strcpytoupper(char *dst, const char *src); > >> void strcpytolower(char *dst, const char *src); > >> void strtoupper(char *s); > >> void strtolower(char *s); > > > > > > You may want to read the article here: > > > > https://lwn.net/Articles...
2016 Jul 10
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...se of a string in-place (i.e. modifying the > string that was passed in) > > Consequently, I am proposing these new functions: > void strlcpytoupper(char *dst, const char *src, size_t len); > void strlcpytolower(char *dst, const char *src, size_t len); > void strcpytoupper(char *dst, const char *src); > void strcpytolower(char *dst, const char *src); > void strtoupper(char *s); > void strtolower(char *s); You may want to read the article here: https://lwn.net/Articles/659214/ and follow up some of the discussion threads on LKML about the be...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...     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. > > > > Usin...
2016 Jul 08
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...is currently being solved by several duplicated implementations doing the same thing. This change aims at reducing this code duplication. The new functions are void strlcpytoupper(char *dst, const char *src, size_t len); void strlcpytolower(char *dst, const char *src, size_t len); void strcpytoupper(char *dst, const char *src); void strcpytolower(char *dst, const char *src); void strtoupper(char *s); void strtolower(char *s); The "str[l]cpyto*" versions of the function take a destination string and a source string as arguments. The "strlcpyto*" versions additio...
2016 Jul 09
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...mentations doing the same thing. This >> change aims at reducing this code duplication. >> >> The new functions are >> void strlcpytoupper(char *dst, const char *src, size_t len); >> void strlcpytolower(char *dst, const char *src, size_t len); >> void strcpytoupper(char *dst, const char *src); >> void strcpytolower(char *dst, const char *src); >> void strtoupper(char *s); >> void strtolower(char *s); >> >> The "str[l]cpyto*" versions of the function take a destination string >> and a source string as a...
2016 Jul 05
0
[PATCH v2 1/7] lib: string: add functions to case-convert strings
...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 source string as arguments. The "strncpyto*" versions addi...
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...e thing. This >>> change aims at reducing this code duplication. >>> >>> The new functions are >>> void strlcpytoupper(char *dst, const char *src, size_t len); >>> void strlcpytolower(char *dst, const char *src, size_t len); >>> void strcpytoupper(char *dst, const char *src); >>> void strcpytolower(char *dst, const char *src); >>> void strtoupper(char *s); >>> void strtolower(char *s); >>> >>> The "str[l]cpyto*" versions of the function take a destination string >>>...
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...t;> change aims at reducing this code duplication. >>>> >>>> The new functions are >>>> void strlcpytoupper(char *dst, const char *src, size_t len); >>>> void strlcpytolower(char *dst, const char *src, size_t len); >>>> void strcpytoupper(char *dst, const char *src); >>>> void strcpytolower(char *dst, const char *src); >>>> void strtoupper(char *s); >>>> void strtolower(char *s); >>>> >>>> The "str[l]cpyto*" versions of the function take a destination...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...se 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<upper|lower>. Using str[n]cpy followed by strto<upper|lower> i...
2016 Jul 10
0
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...(i.e. modifying the >> string that was passed in) >> >> Consequently, I am proposing these new functions: >> void strlcpytoupper(char *dst, const char *src, size_t len); >> void strlcpytolower(char *dst, const char *src, size_t len); >> void strcpytoupper(char *dst, const char *src); >> void strcpytolower(char *dst, const char *src); >> void strtoupper(char *s); >> void strtolower(char *s); > > > You may want to read the article here: > > https://lwn.net/Articles/659214/ I'll read that. Thanks. &...
2016 Jul 13
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...a/include/linux/string.h b/include/linux/string.h index 6cc85dc..eb2d9a8 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -171,6 +171,8 @@ static inline const char *kbasename(const char *path) return tail ? tail + 1 : path; } +#include <linux/kernel.h> + /** * strcpytoupper - Copy string and convert to uppercase. * @dst: The buffer to store the result. This is some scary stuff, but this way it seems to build. Not too sure how to fix this properly and without risking some major headaches when one least expects them. Regards, -Markus > Thanks, > Luis
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...index 6cc85dc..eb2d9a8 100644 > --- a/include/linux/string.h > +++ b/include/linux/string.h > @@ -171,6 +171,8 @@ static inline const char *kbasename(const char *path) > return tail ? tail + 1 : path; > } > > +#include <linux/kernel.h> > + > /** > * strcpytoupper - Copy string and convert to uppercase. > * @dst: The buffer to store the result. > > This is some scary stuff, but this way it seems to build. Not too sure > how to fix this properly and without risking some major headaches when > one least expects them. > > Regards, >...