| 1 | /* Append a string ontp another string |
| 2 | Copyright (C) 1987 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GAS, the GNU Assembler. |
| 5 | |
| 6 | GAS is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 1, or (at your option) |
| 9 | any later version. |
| 10 | |
| 11 | GAS is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GAS; see the file COPYING. If not, write to |
| 18 | the 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 | |
| 25 | void |
| 26 | append (charPP, fromP, length) |
| 27 | char **charPP; |
| 28 | char *fromP; |
| 29 | unsigned 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 */ |