Ignore:
Timestamp:
2010-01-04T17:43:22+13:00 (14 years ago)
Author:
davidb
Message:

Introduction of pathname_cat which concatenates values for path variables such as CLASSPATH and PATH. Uses ':' for Unix, ';' for Windows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/fileutil.h

    r1837 r21404  
    3131
    3232
    33 // returns the proper concatenation of the two paths
     33// returns the proper concatenation of directory + directory/filename
    3434text_t filename_cat (text_t path1, text_t path2);
    3535text_t filename_cat (text_t path1, text_t path2, text_t path3);
     
    3838             text_t path5);
    3939text_t filename_cat (text_t path1, text_t path2, text_t path3, text_t path4,
     40             text_t path5, text_t path6);
     41
     42
     43// returns the proper concatenation of the two paths, as in
     44// /usr/bin:/usr/local/bin (for Unix) and c:\usr\bin;c:\usr\local\bin (for windows)
     45text_t pathname_cat (text_t path1, text_t path2);
     46text_t pathname_cat (text_t path1, text_t path2, text_t path3);
     47text_t pathname_cat (text_t path1, text_t path2, text_t path3, text_t path4);
     48text_t pathname_cat (text_t path1, text_t path2, text_t path3, text_t path4,
     49             text_t path5);
     50text_t pathhname_cat (text_t path1, text_t path2, text_t path3, text_t path4,
    4051             text_t path5, text_t path6);
    4152
Note: See TracChangeset for help on using the changeset viewer.