]>
cygwin.com Git - cygwin-apps/setup.git/blob - concat.h
2 * Copyright (c) 2000, Red Hat, Inc.
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.
9 * A copy of the GNU General Public License can be found at
12 * Written by DJ Delorie <dj@cygnus.com>
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.) */
23 char *concat (const char *s
, ...);
24 char *vconcat (const char *, va_list);
26 /* convert slashes to backslashes */
28 char *backslash (char *s
);
30 /* Used when treating / and \ as equivalent. */
34 ((__c) == '/' || (__c) == '\\'); \
This page took 0.035296 seconds and 5 git commands to generate.