src/util/string.h (view raw)
1/* Copyright (c) 2013-2014 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef UTIL_STRING_H
7#define UTIL_STRING_H
8
9#include "util/common.h"
10
11#ifndef strndup
12// This is sometimes a macro
13char* strndup(const char* start, size_t len);
14#endif
15
16char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len);
17
18#endif