QDP++
include
qdp_strnlen.h
Go to the documentation of this file.
1
#ifndef QDP_STRNLEN_H
2
#define QDP_STRNLEN_H
3
4
#include "
qdp_config.h
"
5
6
#include <stdlib.h>
7
#include <sys/types.h>
8
#include <string.h>
9
10
// Declare this. If it is already declared in string.h it should
11
// still be ok.
12
// On qcdoc it appears to have linkage but no prototype in which
13
// case it should also be declared
14
// Likewise if a prototype were not to exist and no linkage were
15
// to exist declaring it is still OK as qdp_strnlen.cc will provide
16
// the linkage
17
extern
"C"
{
18
size_t
strnlen
(
const
char
*s,
size_t
maxlen);
19
};
20
21
#endif
qdp_config.h
strnlen
size_t strnlen(const char *s, size_t maxlen)
Definition
qdp_strnlen.cc:10
Generated by
1.16.1