Debian Codegraph @

misc/pstring.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/lib/pstring.h $
21 * $Revision: 3 $
22 * $Date: 12/16/98 1:57p $
23 * $Author: Samir $
24 *
25 * Safe string manipulation and creation functions
26 *
27 * $Log: /DescentIII/Main/lib/pstring.h $
28 *
29 * 3 12/16/98 1:57p Samir
30 * Replaced CleanupString2 with CleanupStr
31 *
32 * 2 11/01/98 1:56a Jeff
33 * added pstring.cpp/.h
34 *
35 * $NoKeywords: $
36 */
37
38 #ifndef PSTRING_H
39 #define PSTRING_H
40
41 #include <cstring>
42
43 // CleanupStr
44 // This function strips all leading and trailing spaces, keeping internal spaces. This goes for tabs too.
45 std::size_t CleanupStr(char *dest, const char *src, std::size_t destlen);
46
47 #endif