*/
#ifndef lint
-static char rcs_id[] = "$Id: canna.c,v 1.36 1999-03-02 18:52:41 morioka Exp $";
+static char rcs_id[] = "$Id: canna.c,v 1.37 2000-02-01 02:36:25 tomo Exp $";
#endif
#include <stdio.h>
while((cp < p + l) && (ch = *cp)) {
if ((unsigned char)ch == ISO_CODE_SS2) {
+#ifdef STRING_BYTES
+ len++;
+#else
len += 2;
+#endif
cp += 2;
}
else if ((unsigned char)ch == ISO_CODE_SS3) {
+#ifdef STRING_BYTES
+ len++;
+#else
len += 3;
+#endif
cp += 3;
}
else if(ch & 0x80) {
+#ifdef STRING_BYTES
+ len++;
+#else
len += 3;
+#endif
cp += 2;
}
else {