--- gforth/prim 2000/05/16 09:51:21 1.45 +++ gforth/prim 2000/05/31 14:37:40 1.46 @@ -488,6 +488,7 @@ the first string is smaller, @i{n} is -1 is 1. Currently this is based on the machine's character comparison. In the future, this may change to consider the current locale and its collation order."" +/* close ' to keep fontify happy */ n = memcmp(c_addr1, c_addr2, u1d_name); + if(u2 > u1) + u2 = u1; + memmove(c_addr, dent->d_name, u2); +} + +close-dir wdirid -- wior gforth close_dir +wior = IOR(closedir((DIR *)wdirid)); + +filename-match c_addr1 u1 c_addr2 u2 -- flag gforth match_file +char * string = cstr(c_addr1, u1, 1); +char * pattern = cstr(c_addr2, u2, 0); +flag = FLAG(!fnmatch(pattern, string, 0)); + +\+ + newline -- c_addr u gforth ""String containing the newline sequence of the host OS"" char newline[] = {