server/modules/selva/include/selva.h
static inline void Selva_NodeIdCpy(Selva_NodeId dest, const char *src) {
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif
    strncpy(dest, src, SELVA_NODE_ID_SIZE);
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
/**
 * Copy a node id of any length from src to a fixed length Selva_NodeId variable.
 */
Copy a node id of any length from src to a fixed length Selva_NodeId variable.
Copy a node id of any length from src to a fixed length Selva_NodeId variable .
static inline void Selva_NodeIdCpy(Selva_NodeId dest, const char *src) {
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif
    strncpy(dest, src, SELVA_NODE_ID_SIZE);
#if (defined(__GNUC__) || defined(__GNUG__)) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
static inline void Selva_NodeIdCpy ( Selva_NodeId dest , const char * src ) { #if ( defined ( __GNUC__ ) || defined ( __GNUG__ ) ) && ! defined ( __clang__ ) #pragma  GCC diagnostic push #pragma  GCC diagnostic ignored "-Wstringop-truncation" #endif strncpy ( dest , src , SELVA_NODE_ID_SIZE ) ; #if ( defined ( __GNUC__ ) || defined ( __GNUG__ ) ) && ! defined ( __clang__ ) #pragma  GCC diagnostic pop #endif }
Copy a node id of any length from src to a fixed length Selva_NodeId variable.
Copy a node id of any length from src to a fixed length Selva_NodeId variable .