Home
last modified time | relevance | path

Searched refs:STRNCPY (Results 1 – 25 of 25) sorted by relevance

/vim-8.2.3635/src/
H A Dos_qnx.c129 STRNCPY(clip_header[0].type, CLIP_TYPE_VIM, 8); in clip_mch_set_selection()
133 STRNCPY(clip_header[1].type, CLIP_TYPE_TEXT, 8); in clip_mch_set_selection()
H A Dterm.c6589 STRNCPY(ks->buf, bt->bt_string, KSSIZE); in swap_tcap()
6590 STRNCPY(ks->vbuf, ks->vtp, KSSIZE); in swap_tcap()
6591 STRNCPY(ks->v2buf, ks->vtp2, KSSIZE); in swap_tcap()
6593 STRNCPY(ks->arr, bt->bt_string, KSSIZE); in swap_tcap()
6616 STRNCPY(&ks->buf[0], bt->bt_string, KSSIZE); in swap_tcap()
6619 STRNCPY(&ks->vbuf[0], bt->bt_string, KSSIZE); in swap_tcap()
6622 STRNCPY(&ks->v2buf[0], bt->bt_string, KSSIZE); in swap_tcap()
6637 STRNCPY(bt->bt_string, &ks->buf[0], KSSIZE); in swap_tcap()
6640 STRNCPY(bt->bt_string, &ks->vbuf[0], KSSIZE); in swap_tcap()
6643 STRNCPY(bt->bt_string, &ks->v2buf[0], KSSIZE); in swap_tcap()
H A Dgui_haiku.cc3858 STRNCPY(font_name, hl_get_font_name(), buff_size); in gui_mch_get_font()
3860 STRNCPY(font_name, name, buff_size); in gui_mch_get_font()
3876 STRNCPY(buff, font_name, buff_size); in gui_mch_get_font()
3877 STRNCPY(family, strtok(buff, "/\0"), B_FONT_FAMILY_LENGTH); in gui_mch_get_font()
3880 STRNCPY(style, style_s, B_FONT_STYLE_LENGTH); in gui_mch_get_font()
H A Dstrings.c47 STRNCPY(p, string, len); in vim_strnsave()
509 STRNCPY(to, from, len); in vim_strncpy()
H A Dfold.c1810 STRNCPY(newline + line_len + (p - cms), marker, markerlen); in foldAddMarker()
1885 STRNCPY(newline, line, p - line); in foldDelMarker()
H A Dfilepath.c3399 STRNCPY(p, path_end, len); in dos_expandpath()
3643 STRNCPY(p, path_end, len); in unix_expandpath()
H A Dinsexpand.c3163 STRNCPY(IObuff, ptr, len); in ins_compl_get_exp()
3188 STRNCPY(IObuff + len, ptr, tmp_ptr - ptr); in ins_compl_get_exp()
H A Dvim.h1627 #define STRNCPY(d, s, n) strncpy((char *)(d), (char *)(s), (size_t)(n)) macro
H A Dregexp_nfa.c2895 STRNCPY(save, &p[last], 2); in nfa_print_state2()
2896 STRNCPY(&p[last], "+-", 2); in nfa_print_state2()
2898 STRNCPY(&p[last], save, 2); in nfa_print_state2()
H A Dsearch.c3742 STRNCPY(IObuff, aux, i); in find_pattern_in_path()
3780 STRNCPY(IObuff + i, aux, p - aux); in find_pattern_in_path()
H A Dex_cmds.c353 STRNCPY(sortbuf1, ml_get(l1.lnum) + l1.st_u.line.start_col_nr, in sort_compare()
356 STRNCPY(sortbuf2, ml_get(l2.lnum) + l2.st_u.line.start_col_nr, in sort_compare()
H A Dspellsuggest.c2797 STRNCPY(kword + kwordlen[depth], fword + fwordidx[depth], in find_keepcap_word()
2803 STRNCPY(kword + kwordlen[depth], uword + uwordidx[depth], in find_keepcap_word()
H A Dclipboard.c1150 STRNCPY(bufp, ScreenLines + LineOffset[row] + start_col, in clip_copy_modeless_selection()
H A Dmisc1.c1797 STRNCPY(pnew, p, (pend1 - p)); in vim_getenv()
H A Dregexp.c2450 STRNCPY(retval + len, reg_getline_submatch(lnum), in reg_submatch()
H A Dgui_gtk.c1321 STRNCPY(patt, filter, i); in gui_mch_browse()
H A Dgui_photon.c1469 STRNCPY(vim_text, dialog_text, IOSIZE - 1); in gui_ph_dialog_close()
H A Ddrawline.c2322 STRNCPY(p, p_extra + 1, STRLEN(p_extra) - 1); in win_line()
H A Dscreen.c1052 STRNCPY(buf + len, s, l); in win_redr_status_matches()
H A Dfileio.c4798 STRNCPY(buf, path, MAXPATHL-5); in readdir_core()
H A Dmemline.c342 STRNCPY(b0p->b0_version + 4, Version, 6); in ml_open()
H A Duserfunc.c5197 STRNCPY(IObuff + 8, s, IOSIZE - 8); in get_return_cmd()
H A Dex_docmd.c4707 STRNCPY(ptr, program, i); in replace_makeprg()
H A Dgui_w32.c7881 STRNCPY(text, menu->actext, acLen); in gui_mch_tearoff()
/vim-8.2.3635/runtime/doc/
H A Dversion8.txt26160 Solution: Use mch_memmove() instead of STRNCPY().
31866 Problem: Using STRNCPY() wrongly. Warning for uninitialized variable.
33648 Problem: Compiler warnings for use of STRNCPY(). (John Marriott)
33649 Solution: Use mch_memmove() instead of STRNCPY().