Changed TgtTranslateBuf

git-svn-id: svn://svn.cc65.org/cc65/trunk@649 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-03-23 17:56:28 +00:00
parent 1bc86c9c78
commit 45cf0c2dd9
3 changed files with 10 additions and 11 deletions

View File

@@ -150,7 +150,7 @@ char* TgtTranslateStr (char* S)
char* TgtTranslateBuf (char* Buf, unsigned Len)
void TgtTranslateBuf (void* Buf, unsigned Len)
/* Translate a buffer of the given length from the source character set into
* the target system character set.
*/
@@ -158,14 +158,11 @@ char* TgtTranslateBuf (char* Buf, unsigned Len)
/* Translate */
if (Tab) {
unsigned char* B = (unsigned char*)Buf;
while (Len--) {
*B = Tab[*B];
++B;
}
while (Len--) {
*B = Tab[*B];
++B;
}
}
/* Return the argument string */
return Buf;
}

View File

@@ -57,7 +57,7 @@ char* TgtTranslateStr (char* S);
* system character set.
*/
char* TgtTranslateBuf (char* Buf, unsigned Len);
void TgtTranslateBuf (void* Buf, unsigned Len);
/* Translate a buffer of the given length from the source character set into
* the target system character set.
*/