Changeset 6c69d19 in mainline for uspace/lib/posix/locale.c
- Timestamp:
- 2011-07-25T20:34:17Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 00c2de63, c936c7f
- Parents:
- 5889fc74 (diff), d542aad (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/locale.c
r5889fc74 r6c69d19 30 30 * @{ 31 31 */ 32 /** @file 32 /** @file Locale-specific definitions. 33 33 */ 34 34 … … 41 41 #include "limits.h" 42 42 #include "string.h" 43 44 // TODO: documentation 43 45 44 46 struct __posix_locale { … … 73 75 }; 74 76 77 /** 78 * 79 * @param category 80 * @param locale 81 * @return 82 */ 75 83 char *posix_setlocale(int category, const char *locale) 76 84 { … … 83 91 } 84 92 93 /** 94 * 95 * @return 96 */ 85 97 struct posix_lconv *posix_localeconv(void) 86 98 { … … 89 101 } 90 102 103 /** 104 * 105 * @param locobj 106 * @return 107 */ 91 108 posix_locale_t posix_duplocale(posix_locale_t locobj) 92 109 { … … 104 121 } 105 122 123 /** 124 * 125 * @param locobj 126 */ 106 127 void posix_freelocale(posix_locale_t locobj) 107 128 { 108 free(locobj); 129 if (locobj) { 130 free(locobj); 131 } 109 132 } 110 133 134 /** 135 * 136 * @param category_mask 137 * @param locale 138 * @param base 139 * @return 140 */ 111 141 posix_locale_t posix_newlocale(int category_mask, const char *locale, 112 142 posix_locale_t base) … … 129 159 } 130 160 131 posix_locale_t posix_uselocale (posix_locale_t newloc) 161 /** 162 * 163 * @param newloc 164 * @return 165 */ 166 posix_locale_t posix_uselocale(posix_locale_t newloc) 132 167 { 133 168 // TODO
Note:
See TracChangeset
for help on using the changeset viewer.