Changeset 324d46b in mainline for uspace/lib/posix/locale.c
- Timestamp:
- 2011-07-07T01:32:53Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f466c33
- Parents:
- 08053f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/locale.c
r08053f7 r324d46b 42 42 #include "string.h" 43 43 44 struct _ posix_locale {44 struct __posix_locale { 45 45 int _dummy; 46 46 }; … … 83 83 } 84 84 85 struct posix_lconv * localeconv(void)85 struct posix_lconv *posix_localeconv(void) 86 86 { 87 87 // TODO … … 95 95 return NULL; 96 96 } 97 posix_locale_t copy = malloc(sizeof(struct _ posix_locale));97 posix_locale_t copy = malloc(sizeof(struct __posix_locale)); 98 98 if (copy == NULL) { 99 99 errno = ENOMEM; 100 100 return NULL; 101 101 } 102 memcpy(copy, locobj, sizeof(struct _ posix_locale));102 memcpy(copy, locobj, sizeof(struct __posix_locale)); 103 103 return copy; 104 104 } … … 118 118 } 119 119 // TODO 120 posix_locale_t new = malloc(sizeof(struct _ posix_locale));120 posix_locale_t new = malloc(sizeof(struct __posix_locale)); 121 121 if (new == NULL) { 122 122 errno = ENOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.