Changeset c47e1a8 in mainline for uspace/srv/devman/util.h
- Timestamp:
- 2010-05-21T07:50:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d51ee2b
- Parents:
- cf8cc36 (diff), 15b592b (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/srv/devman/util.h
rcf8cc36 rc47e1a8 35 35 36 36 #include <ctype.h> 37 #include <str.h> 38 #include <malloc.h> 37 39 38 40 39 41 char * get_abs_path(const char *base_path, const char *name, const char *ext); 40 c onst char * get_path_elem_end(constchar *path);42 char * get_path_elem_end(char *path); 41 43 42 static inline bool skip_spaces(c onst char **buf)44 static inline bool skip_spaces(char **buf) 43 45 { 44 46 while (isspace(**buf)) { … … 65 67 } 66 68 69 static inline char * clone_string(const char *s) 70 { 71 size_t size = str_size(s) + 1; 72 char *str = (char *)malloc(size); 73 if (NULL != str) { 74 str_cpy(str, size, s); 75 } 76 return str; 77 } 78 67 79 #endif
Note:
See TracChangeset
for help on using the changeset viewer.