Permalink
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (17 sloc) 578 Bytes
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef NSTRING_H
# define NSTRING_H
#include <stdlib.h>
#include <string.h>
#include <ncompat.h>
const char *nstrnstr( const char *haystack, const char *needle, size_t size );
#if HAS_POSIX && defined(_GNU_SOURCE)
#define nstrcasestr strcasestr
#define nsnprintf snprintf
#else /* HAVE_POSIX && defined(_GNU_SOURCE) */
const char *nstrcasestr( const char *haystack, const char *needle );
int nsnprintf( char *text, size_t maxlen, const char *fmt, ... );
#endif /* HAVE_POSIX */
#endif /* NSTRING_H */