2014-12-03 08:39:06 +00:00
|
|
|
/* Copyright (c) 2013-2014 Jeffrey Pfau
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2014-10-19 10:01:26 +00:00
|
|
|
#ifndef UTIL_STRING_H
|
|
|
|
#define UTIL_STRING_H
|
|
|
|
|
|
|
|
#include "util/common.h"
|
|
|
|
|
2014-11-17 04:25:52 +00:00
|
|
|
#ifndef strndup
|
|
|
|
// This is sometimes a macro
|
2014-10-19 10:01:26 +00:00
|
|
|
char* strndup(const char* start, size_t len);
|
2014-11-17 04:25:52 +00:00
|
|
|
#endif
|
|
|
|
|
2014-10-19 10:01:26 +00:00
|
|
|
char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len);
|
|
|
|
|
|
|
|
#endif
|