strings.h
Go to the documentation of this file.
1 #ifndef NVIM_STRINGS_H
2 #define NVIM_STRINGS_H
3 
4 #include <stdarg.h>
5 #include <stdbool.h>
6 #include <string.h>
7 
8 #include "nvim/eval/typval.h"
9 #include "nvim/lib/kvec.h"
10 #include "nvim/types.h"
11 
21 static inline char *strappend(char *const dst, const char *const src)
24 {
25  const size_t src_len = strlen(src);
26  return (char *)memmove(dst, src, src_len) + src_len;
27 }
28 
29 typedef kvec_t(char) StringBuilder;
30 
31 #ifdef INCLUDE_GENERATED_DECLARATIONS
32 # include "strings.h.generated.h"
33 #endif
34 #endif // NVIM_STRINGS_H
src
const char_u * src
Definition: keycodes.c:625
types.h
dst
* dst
Definition: env.c:757
FUNC_ATTR_NONNULL_RET
void FUNC_ATTR_NONNULL_RET
Definition: memory.c:134
kvec.h
FUNC_ATTR_NONNULL_ALL
#define FUNC_ATTR_NONNULL_ALL
Definition: func_attr.h:247
typval.h
kvec_t
typedef kvec_t(char) StringBuilder
FUNC_ATTR_WARN_UNUSED_RESULT
#define FUNC_ATTR_WARN_UNUSED_RESULT
Definition: func_attr.h:244
FUNC_ATTR_ALWAYS_INLINE
#define FUNC_ATTR_ALWAYS_INLINE
Definition: func_attr.h:245