Changeset c47e1a8 in mainline for uspace/srv/devman/util.h


Ignore:
Timestamp:
2010-05-21T07:50:04Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
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.
Message:

merge mainline changes (rev. 451)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/util.h

    rcf8cc36 rc47e1a8  
    3535
    3636#include <ctype.h>
     37#include <str.h>
     38#include <malloc.h>
    3739
    3840
    3941char * get_abs_path(const char *base_path, const char *name, const char *ext);
    40 const char * get_path_elem_end(const char *path);
     42char * get_path_elem_end(char *path);
    4143
    42 static inline bool skip_spaces(const char **buf)
     44static inline bool skip_spaces(char **buf)
    4345{
    4446        while (isspace(**buf)) {
     
    6567}
    6668
     69static 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
    6779#endif
Note: See TracChangeset for help on using the changeset viewer.