Changeset ceebf0a in mainline
- Timestamp:
- 2011-06-09T15:48:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 09b0b1fb
- Parents:
- ae1c11b
- Location:
- uspace/lib/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdlib.c
rae1c11b rceebf0a 1 1 /* 2 2 * Copyright (c) 2011 Petr Koupy 3 * Copyright (c) 2011 Jiri Zarevucky 3 4 * All rights reserved. 4 5 * … … 36 37 37 38 #include "stdlib.h" 39 #include "common.h" 38 40 39 41 /** … … 47 49 { 48 50 // TODO 51 not_implemented(); 49 52 } 50 53 … … 57 60 { 58 61 // TODO 59 return 0;62 not_implemented(); 60 63 } 61 64 … … 69 72 { 70 73 // TODO 71 return 0; 74 not_implemented(); 75 } 76 77 /** 78 * 79 * @param nptr 80 * @param endptr 81 * @return 82 */ 83 float posix_strtof(const char *restrict nptr, char **restrict endptr) 84 { 85 // TODO 86 not_implemented(); 87 } 88 89 /** 90 * 91 * @param nptr 92 * @param endptr 93 * @return 94 */ 95 double posix_strtod(const char *restrict nptr, char **restrict endptr) 96 { 97 // TODO 98 not_implemented(); 99 } 100 101 /** 102 * 103 * @param nptr 104 * @param endptr 105 * @return 106 */ 107 long double posix_strtold(const char *restrict nptr, char **restrict endptr) 108 { 109 // TODO 110 not_implemented(); 72 111 } 73 112 -
uspace/lib/posix/stdlib.h
rae1c11b rceebf0a 1 1 /* 2 2 * Copyright (c) 2011 Petr Koupy 3 * Copyright (c) 2011 Jiri Zarevucky 3 4 * All rights reserved. 4 5 * … … 59 60 extern char *posix_realpath(const char *restrict name, char *restrict resolved); 60 61 62 /* decimal to native floating point conversion */ 63 extern float posix_strtof(const char *restrict nptr, char **restrict endptr); 64 extern double posix_strtod(const char *restrict nptr, char **restrict endptr); 65 extern long double posix_strtold(const char *restrict nptr, char **restrict endptr); 66 61 67 #ifndef LIBPOSIX_INTERNAL 62 68 #define qsort posix_qsort 63 69 #define getenv posix_getenv 64 70 #define realpath posix_realpath 71 72 #define strtof posix_strtof 73 #define strtod posix_strtod 74 #define strtold posix_strtold 65 75 #endif 66 76
Note:
See TracChangeset
for help on using the changeset viewer.