append.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* Append a string ontp another string
  2. Copyright (C) 1987 Free Software Foundation, Inc.
  3. This file is part of GAS, the GNU Assembler.
  4. GAS 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 1, or (at your option)
  7. any later version.
  8. GAS is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GAS; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. /* JF: This is silly. Why not stuff this in some other file? */
  16. #ifdef USG
  17. #define bcopy(from,to,n) memcpy(to,from,n)
  18. #endif
  19. void
  20. append (charPP, fromP, length)
  21. char **charPP;
  22. char *fromP;
  23. unsigned long length;
  24. {
  25. if (length) { /* Don't trust bcopy() of 0 chars. */
  26. bcopy (fromP, * charPP,(int) length);
  27. *charPP += length;
  28. }
  29. }
  30. /* end: append.c */