Displaying 6 results from an estimated 6 matches for "strncpytoupp".
Did you mean:
strncpytoupper
2016 Jul 05
0
[PATCH v2 1/7] lib: string: add functions to case-convert strings
...ercase.
Changing the case of a string (with or without copying it 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...
2016 Jul 05
7
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...maximum length to mimic strncpy()
- copying a string and 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 poin...
2016 Jul 08
1
[PATCH v2 1/7] lib: string: add functions to case-convert strings
...t; Changing the case of a string (with or without copying it 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.
>
> +/**
> + * strncpytoupper - Copy a length-limited string and convert to uppercase.
> + * @dst: The buffer to store the result.
> + * @src: The string to convert to uppercase.
> + * @len: Maximum string length. May be 0 to set no limit.
> + *
> + * Returns pointer to terminating '\0' in @dst.
> +...
2016 Jul 05
3
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...a string and 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...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...py()
> - copying a string and 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...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...hout 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(cha...