# | Line 72 | Line 72 | void extfs_exit(void) | |
---|---|---|
72 | ||
73 | ||
74 | /* | |
75 | + | * Add component to path name |
76 | + | */ |
77 | + | |
78 | + | void add_path_component(char *path, const char *component, int max_len) |
79 | + | { |
80 | + | int l = strlen(path); |
81 | + | if (l < max_len-1 && path[l-1] != '/') { |
82 | + | path[l] = '/'; |
83 | + | path[l+1] = 0; |
84 | + | } |
85 | + | strncat(path, component, max_len-1); |
86 | + | } |
87 | + | |
88 | + | |
89 | + | /* |
90 | * Get/set finder type/creator for file specified by full path | |
91 | */ | |
92 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |