Changeset 4022513 in mainline for uspace/srv/devman/util.c
- Timestamp:
- 2011-07-24T12:53:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45cae6b
- Parents:
- 8fd04ba9
- File:
-
- 1 edited
-
uspace/srv/devman/util.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/util.c
r8fd04ba9 r4022513 91 91 } 92 92 93 char *clone_string(const char *s)94 {95 size_t size = str_size(s) + 1;96 char *str;97 98 str = (char *) malloc(size);99 if (str != NULL)100 str_cpy(str, size, s);101 return str;102 }103 104 93 void replace_char(char *str, char orig, char repl) 105 94 {
Note:
See TracChangeset
for help on using the changeset viewer.
