Ticket #2443: str.diff
File str.diff, 2.5 KB (added by , 16 years ago) |
---|
-
src/system/libroot/posix/string/Jamfile
25 25 strerror.c 26 26 strlcat.c 27 27 strlcpy.c 28 strlwr.c 28 29 strncat.c 29 30 strncmp.c 30 31 strncpy.c … … 34 35 strspn.c 35 36 strstr.c 36 37 strtok.c 38 strupr.c 37 39 strxfrm.c 38 40 ; 39 41 -
src/system/libroot/posix/string/strlwr.c
1 /* 2 ** Copyright 2008, Mika Lindqvist. All rights reserved. 3 ** Distributed under the terms of the Haiku License. 4 */ 5 6 #include <ctype.h> 7 #include <string.h> 8 9 char * 10 strlwr(char *str) 11 { 12 char *c = str; 13 while(*c) { 14 *c = tolower(*c); 15 c++; 16 } 17 return(str); 18 } 19 -
src/system/libroot/posix/string/strupr.c
1 /* 2 ** Copyright 2008, Mika Lindqvist. All rights reserved. 3 ** Distributed under the terms of the Haiku License. 4 */ 5 6 #include <ctype.h> 7 #include <string.h> 8 9 char * 10 strupr(char *str) 11 { 12 char *c = str; 13 while(*c) { 14 *c = toupper(*c); 15 c++; 16 } 17 return(str); 18 } 19 -
src/system/kernel/lib/Jamfile
109 109 strspn.c 110 110 strstr.c 111 111 strtok.c 112 strupr.c 112 113 113 114 : $(TARGET_KERNEL_PIC_CCFLAGS) 114 115 ; -
src/add-ons/kernel/bus_managers/acpi/include/platform/achaiku.h
138 138 #include <string.h> 139 139 #include <ctype.h> 140 140 #include <stdarg.h> 141 #include <stdlib.h> 141 142 142 143 #define asm __asm 143 144 … … 206 207 } while (0) 207 208 208 209 209 /* Kernel doesn't have strupr, should be fixed. */210 static __inline char *211 strupr(char *str)212 {213 char *c = str;214 while(*c) {215 *c = toupper(*c);216 c++;217 }218 return(str);219 }220 221 210 #else /* _KERNEL_MODE */ 222 211 223 212 #include <ctype.h>