Changeset 980311e in mainline
- Timestamp:
- 2011-08-24T21:32:32Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 81e9cb3
- Parents:
- a5454cf
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
ra5454cf r980311e 873 873 874 874 return (char *) res; 875 }876 877 /** Find first occurence of character in wide string.878 *879 * @param wstr String to search.880 * @param ch Character to look for.881 *882 * @return Pointer to character in @a wstr or NULL if not found.883 */884 wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch)885 {886 while (*wstr && *wstr != ch)887 wstr++;888 if (*wstr)889 return (wchar_t *) wstr;890 else891 return NULL;892 875 } 893 876 -
uspace/lib/c/include/str.h
ra5454cf r980311e 90 90 extern char *str_chr(const char *str, wchar_t ch); 91 91 extern char *str_rchr(const char *str, wchar_t ch); 92 extern wchar_t *wstr_chr(const wchar_t *wstr, wchar_t ch);93 92 94 93 extern bool wstr_linsert(wchar_t *str, wchar_t ch, size_t pos, size_t max_pos); -
uspace/srv/fs/fat/fat_dentry.c
ra5454cf r980311e 356 356 357 357 while ((ch = str_decode(name, &offset, STR_NO_LIMIT)) != 0) { 358 if ( wstr_chr(FAT_STOP_CHARS, ch) != NULL) {358 if (str_chr(FAT_STOP_CHARS, ch) != NULL) { 359 359 result = false; 360 360 break; -
uspace/srv/fs/fat/fat_dentry.h
ra5454cf r980311e 39 39 40 40 #define IS_D_CHAR(ch) (isalnum(ch) || ch == '_') 41 #define FAT_STOP_CHARS L"*?/\\\n\t|'"41 #define FAT_STOP_CHARS "*?/\\\n\t|'" 42 42 43 43 #define FAT_NAME_LEN 8
Note:
See TracChangeset
for help on using the changeset viewer.