mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Remove unused strtoupper() function
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
be229d129e
commit
7b1a86b893
@ -312,19 +312,6 @@ void indentprint(const char *str, size_t indent)
|
|||||||
free(wcstr);
|
free(wcstr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Convert a string to uppercase
|
|
||||||
*/
|
|
||||||
char *strtoupper(char *str)
|
|
||||||
{
|
|
||||||
char *ptr = str;
|
|
||||||
|
|
||||||
while(*ptr) {
|
|
||||||
(*ptr) = (char)toupper((unsigned char)*ptr);
|
|
||||||
ptr++;
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Trim whitespace and newlines from a string
|
/* Trim whitespace and newlines from a string
|
||||||
*/
|
*/
|
||||||
char *strtrim(char *str)
|
char *strtrim(char *str)
|
||||||
|
@ -55,7 +55,6 @@ int rmrf(const char *path);
|
|||||||
const char *mbasename(const char *path);
|
const char *mbasename(const char *path);
|
||||||
char *mdirname(const char *path);
|
char *mdirname(const char *path);
|
||||||
void indentprint(const char *str, size_t indent);
|
void indentprint(const char *str, size_t indent);
|
||||||
char *strtoupper(char *str);
|
|
||||||
char *strtrim(char *str);
|
char *strtrim(char *str);
|
||||||
char *strreplace(const char *str, const char *needle, const char *replace);
|
char *strreplace(const char *str, const char *needle, const char *replace);
|
||||||
alpm_list_t *strsplit(const char *str, const char splitchar);
|
alpm_list_t *strsplit(const char *str, const char splitchar);
|
||||||
|
Loading…
Reference in New Issue
Block a user