2004-01-07 18:21:25 +03:00
|
|
|
/*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#ifndef OMPI_STRNCPY_H
|
|
|
|
#define OMPI_STRNCPY_H
|
2004-01-07 18:21:25 +03:00
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
#include "ompi_config.h"
|
2004-10-20 05:03:09 +04:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2004-01-07 18:21:25 +03:00
|
|
|
#include <sys/types.h>
|
2004-10-20 05:03:09 +04:00
|
|
|
#endif
|
2004-01-07 18:21:25 +03:00
|
|
|
|
2004-01-19 20:48:41 +03:00
|
|
|
/*
|
2004-06-07 19:33:53 +04:00
|
|
|
* Use ompi_strncpy() instead of strncpy()
|
2004-01-19 20:48:41 +03:00
|
|
|
*/
|
2004-02-13 08:37:49 +03:00
|
|
|
#if defined(strncpy)
|
|
|
|
#undef strncpy
|
|
|
|
#endif
|
2004-06-07 19:33:53 +04:00
|
|
|
#define strncpy ompi_strncpy
|
2004-01-19 20:48:41 +03:00
|
|
|
|
|
|
|
|
2004-10-22 20:06:05 +04:00
|
|
|
OMPI_DECLSPEC char *ompi_strncpy(char *dest, const char *src, size_t len);
|
2004-01-07 18:21:25 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#endif /* OMPI_STRNCPY_H */
|