Oh GACK! src-clean doesn't quite work that easily since cleandist rebuilds the
[unix-history] / gnu / usr.bin / as / append.c
CommitLineData
7b374118
NW
1/* Append a string ontp another string
2 Copyright (C) 1987 Free Software Foundation, Inc.
3
4This file is part of GAS, the GNU Assembler.
5
6GAS is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option)
9any later version.
10
11GAS is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GAS; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20/* JF: This is silly. Why not stuff this in some other file? */
21#ifdef USG
22#define bcopy(from,to,n) memcpy(to,from,n)
23#endif
24
25void
26append (charPP, fromP, length)
27char **charPP;
28char *fromP;
29unsigned long length;
30{
31 if (length) { /* Don't trust bcopy() of 0 chars. */
32 bcopy (fromP, * charPP,(int) length);
33 *charPP += length;
34 }
35}
36
37/* end: append.c */