ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/extfs_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/extfs_unix.cpp (file contents):
Revision 1.2 by cebix, 1999-10-20T17:23:56Z vs.
Revision 1.3 by cebix, 1999-10-21T22:40:01Z

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines