]> git.sur5r.net Git - cc65/blobdiff - src/common/tgttrans.c
Make much more usage of dynamic strings (StrBufs) instead of char* and
[cc65] / src / common / tgttrans.c
index 8c047423d524282efa532aced75cf787da570903..a88e0e97e629bf3dd90861c762f10ae09142cbba 100644 (file)
@@ -6,8 +6,8 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 2000-2004 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
+/* (C) 2000-2008 Ullrich von Bassewitz                                       */
+/*               Roemerstrasse 52                                            */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
@@ -35,6 +35,7 @@
 
 #include <string.h>
 
+/* common */
 #include "abend.h"
 #include "check.h"
 #include "target.h"
@@ -212,6 +213,16 @@ void TgtTranslateBuf (void* Buf, unsigned Len)
 
 
 
+void TgtTranslateStrBuf (StrBuf* Buf)
+/* Translate a string buffer from the source character set into the target
+ * system character set.
+ */                                  
+{
+    TgtTranslateBuf (SB_GetBuf (Buf), SB_GetLen (Buf));
+}
+
+
+
 void TgtTranslateSet (unsigned Index, unsigned char C)
 /* Set the translation code for the given character */
 {