mirror of
https://github.com/yawut/SDL.git
synced 2026-04-01 06:34:39 -05:00
strchr and strrchr return a pointer to the first/last occurrence of a character in a string, or NULL if the character is not found. According to the C standard, the final null terminator is part of the string, and it should thus be possible to get a pointer to the final null with these functions. The fallback implementations of SDL_strchr and SDL_strrchr would always return NULL if trying to find '\0', and this commit fixes that. |
||
|---|---|---|
| .. | ||
| SDL_crc32.c | ||
| SDL_getenv.c | ||
| SDL_iconv.c | ||
| SDL_malloc.c | ||
| SDL_memcpy.c | ||
| SDL_memset.c | ||
| SDL_qsort.c | ||
| SDL_stdlib.c | ||
| SDL_string.c | ||
| SDL_strtokr.c | ||
| SDL_vacopy.h | ||