Lines Matching refs:NUL

195 	(*fname)[new_len] = NUL;  in shortpath_for_invalid_fname()
327 || (*fnamep)[1] == NUL) in modify_fname()
329 && !(tilde_file && (*fnamep)[1] == NUL) in modify_fname()
340 for (p = *fnamep; *p != NUL; MB_PTR_ADV(p)) in modify_fname()
344 && (p[2] == NUL in modify_fname()
347 && (p[3] == NUL || vim_ispathsep(p[3]))))) in modify_fname()
352 if (*p != NUL || !vim_isAbsName(*fnamep)) in modify_fname()
354 *fnamep = FullName_save(*fnamep, *p != NUL); in modify_fname()
697 if (c != NUL) in modify_fname()
698 (*fnamep)[*fnamelen] = NUL; in modify_fname()
700 if (c != NUL) in modify_fname()
733 if (*s == NUL) in shorten_dir_len()
843 if (name == NULL || *name == NUL) in f_delete()
854 if (*flags == NUL) in f_delete()
945 char_u *path = *curbuf->b_p_path == NUL ? p_path : curbuf->b_p_path; in findfilendir()
972 if (*p != NUL) in findfilendir()
983 if (*fname != NUL && !error) in findfilendir()
1052 if (mods != NULL && *mods != NUL) in f_fnamemodify()
1469 if (*dir == NUL) in f_mkdir()
1472 if (*gettail(dir) == NUL) in f_mkdir()
1474 *gettail_sep(dir) = NUL; in f_mkdir()
1767 if (*fname == NUL || (fd = mch_fopen((char *)fname, READBIN)) == NULL) in read_file_or_blob()
1769 semsg(_(e_notopen), *fname == NUL ? (char_u *)_("<empty>") : fname); in read_file_or_blob()
1825 s[prevlen + len] = NUL; in read_file_or_blob()
1852 else if (*p == NUL) in read_file_or_blob()
1861 : prevlen >= 1 ? prev[prevlen - 1] : NUL; in read_file_or_blob()
1864 : prevlen >= 2 ? prev[prevlen - 2] : NUL; in read_file_or_blob()
2027 p[len - 1] = NUL; // the trailing slash breaks readlink() in f_resolve()
2031 if (*q != NUL) in f_resolve()
2036 q[-1] = NUL; in f_resolve()
2053 buf[len] = NUL; in f_resolve()
2072 if (*q != NUL) in f_resolve()
2085 q[-1] = NUL; in f_resolve()
2089 if (q > p && *q == NUL) in f_resolve()
2092 q[-1] = NUL; in f_resolve()
2119 len = q - remain - (*q != NUL); in f_resolve()
2128 if (*q != NUL) in f_resolve()
2139 && *p != NUL in f_resolve()
2141 && (p[1] == NUL in f_resolve()
2144 && (p[2] == NUL in f_resolve()
2172 *gettail_sep(p) = NUL; in f_resolve()
2299 if (*fname == NUL || (fd = mch_fopen((char *)fname, in f_writefile()
2302 semsg(_(e_notcreate), *fname == NUL ? (char_u *)_("<empty>") : fname); in f_writefile()
2360 if (title == NULL || *title == NUL) in do_browse()
2372 if ((initdir == NULL || *initdir == NUL) && dflt != NULL && *dflt != NUL) in do_browse()
2385 *gettail(initdir) = NUL; in do_browse()
2391 if (initdir == NULL || *initdir == NUL) in do_browse()
2403 if (dflt == NULL || *dflt == NUL) in do_browse()
2409 *gettail(initdir) = NUL; in do_browse()
2442 if (fname != NULL && *fname != NUL && !mch_isdir(fname)) in do_browse()
2449 *tail = NUL; in do_browse()
2478 *gettail(last_dir) = NUL; in do_browse()
2479 if (*last_dir == NUL) in do_browse()
2591 *dst = NUL; in home_replace()
2621 if (homedir_env != NULL && *homedir_env == NUL) in home_replace()
2636 homedir_env[flen - 1] = NUL; in home_replace()
2663 || src[len] == NUL)) in home_replace()
2689 *dst = NUL; in home_replace()
2947 *p = NUL; in dir_of_file_exists()
2975 int cx = NUL; in vim_fnamencmp()
2976 int cy = NUL; in vim_fnamencmp()
2982 if (cx == NUL || cy == NUL in vim_fnamencmp()
3028 if (*p != NUL && !after_pathsep(p, p + STRLEN(p))) in add_pathsep()
3247 return (*p == '`' && *(p + 1) != NUL && *(p + STRLEN(p) - 1) == '`'); in vim_backtick()
3284 while (*cmd != NUL) in expand_backtick()
3288 while (*p != NUL && *p != '\r' && *p != '\n') // skip over entry in expand_backtick()
3294 *p = NUL; in expand_backtick()
3300 while (*cmd != NUL && (*cmd == '\r' || *cmd == '\n')) in expand_backtick()
3381 while (*path_end != NUL) in dos_expandpath()
3407 *e = NUL; in dos_expandpath()
3479 if (*wfb.cAlternateFileName == NUL || p[STRLEN(p) - 1] == '~') in dos_expandpath()
3488 && p[1] != NUL && (p[1] != '.' || p[2] != NUL))) in dos_expandpath()
3623 while (*path_end != NUL) in unix_expandpath()
3651 *e = NUL; in unix_expandpath()
3708 *s = NUL; in unix_expandpath()
3709 dirp = opendir(*buf == NUL ? "." : (char *)buf); in unix_expandpath()
3721 && dp->d_name[1] != NUL in unix_expandpath()
3722 && (dp->d_name[1] != '.' || dp->d_name[2] != NUL))) in unix_expandpath()
3755 if (*path_end != NUL) in unix_expandpath()
3801 if (*p == '\\' && p[1] != NUL) in has_env_var()
3829 if (*p == '\\' && p[1] != NUL && p[1] != '\r' && p[1] != '\n') in has_special_wildchar()
4114 if (c1 == NUL) in pathcmp()
4116 if (c2 == NUL) // full match in pathcmp()
4124 if (c2 == NUL) in pathcmp()
4155 if (c2 == NUL in pathcmp()
4194 *buf = NUL; in vim_FullName()