]> cygwin.com Git - cygwin-apps/setup.git/blob - concat.h
2002-01-27 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / concat.h
1 /*
2 * Copyright (c) 2000, Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by DJ Delorie <dj@cygnus.com>
13 *
14 */
15
16 #include <stdarg.h>
17
18 /* Pass a null-terminated list of strings, and it concatenates them
19 into a single string. Warning - it assumes the result is a file
20 name or URL, and will canonicalize the result accordingly
21 (i.e. replace \ with /, collapse multiple /// to a single /, etc.) */
22
23 char *concat (const char *s, ...);
24 char *vconcat (const char *, va_list);
25
26 /* convert slashes to backslashes */
27
28 char *backslash (char *s);
29
30 /* Used when treating / and \ as equivalent. */
31 #define SLASH_P(ch) \
32 ({ \
33 char __c = (ch); \
34 ((__c) == '/' || (__c) == '\\'); \
35 })
This page took 0.035296 seconds and 5 git commands to generate.