2003-03-17 Bob Cassels <bcassels@abinitio.com>
* libc/string/wcschr.c: (wcschr): Look for character first,
        then for end of string, so you can do wcschr(x, '\0').
			
			
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2003-03-17  Bob Cassels  <bcassels@abinitio.com> | ||||
|  | ||||
|         * libc/string/wcschr.c: (wcschr): Look for character first,  | ||||
| 	then for end of string, so you can do wcschr(x, '\0'). | ||||
|  | ||||
| 2003-03-10  Corinna Vinschen  <corinna@vinschen.de>      | ||||
|  | ||||
| 	* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello | ||||
|   | ||||
| @@ -69,14 +69,13 @@ _DEFUN (wcschr, (s, c), | ||||
|   _CONST wchar_t *p; | ||||
|  | ||||
|   p = s; | ||||
|   while (*p) | ||||
|   do | ||||
|     { | ||||
|       if (*p == c) | ||||
| 	{ | ||||
| 	  /* LINTED interface specification */ | ||||
| 	  return (wchar_t *) p; | ||||
| 	} | ||||
|       p++; | ||||
|     } | ||||
|     } while (*p++); | ||||
|   return NULL; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user