# | Line 57 | Line 57 | void extfs_exit(void) | |
---|---|---|
57 | ||
58 | ||
59 | /* | |
60 | + | * Add component to path name |
61 | + | */ |
62 | + | |
63 | + | void add_path_component(char *path, const char *component, int max_len) |
64 | + | { |
65 | + | int l = strlen(path); |
66 | + | if (l < max_len-1 && path[l-1] != '/') { |
67 | + | path[l] = '/'; |
68 | + | path[l+1] = 0; |
69 | + | } |
70 | + | strncat(path, s, max_len-1); |
71 | + | } |
72 | + | |
73 | + | |
74 | + | /* |
75 | * Get/set finder type/creator for file specified by full path | |
76 | */ | |
77 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |