diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-05-06 07:39:00 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-05-06 07:39:00 +0000 |
commit | 3c9aabc7f092cca553e7915b21298a5dfab5759a (patch) | |
tree | fa1b2e1d80b6cd84e95f5b49f3fcc890283f4a39 /gas/sb.c | |
parent | 6eaeac8ad728ca5efd19aca44c559199dcb296e2 (diff) | |
download | gdb-3c9aabc7f092cca553e7915b21298a5dfab5759a.zip gdb-3c9aabc7f092cca553e7915b21298a5dfab5759a.tar.gz gdb-3c9aabc7f092cca553e7915b21298a5dfab5759a.tar.bz2 |
gas/
2005-05-06 Jan Beulich <jbeulich@novell.com>
* sb.h (sb_add_buffer): Reintroduce.
* sb.c (sb_add_buffer): Likewise.
Diffstat (limited to 'gas/sb.c')
-rw-r--r-- | gas/sb.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -165,6 +165,16 @@ sb_add_string (sb *ptr, const char *s) ptr->len += len; } +/* add string at s of length len to sb at ptr */ + +void +sb_add_buffer (sb *ptr, const char *s, int len) +{ + sb_check (ptr, len); + memcpy (ptr->ptr + ptr->len, s, len); + ptr->len += len; +} + /* like sb_name, but don't include the null byte in the string. */ char * |