aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorjames <>2008-02-27 00:54:16 +0000
committerjames <>2008-02-27 00:54:16 +0000
commit74feb0db53bf6ed2d53ca59e3aed001f1160e62a (patch)
tree5344087602e010d1677a647656121b3713470410 /src/util.c
parentdd068f2faaa044fbcef7a430650a221f210cba40 (diff)
downloadsympathy-74feb0db53bf6ed2d53ca59e3aed001f1160e62a.tar.gz
sympathy-74feb0db53bf6ed2d53ca59e3aed001f1160e62a.tar.bz2
sympathy-74feb0db53bf6ed2d53ca59e3aed001f1160e62a.zip
*** empty log message ***
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index e8b221a..ea46e77 100644
--- a/src/util.c
+++ b/src/util.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.6 2008/02/27 00:54:16 james
+ * *** empty log message ***
+ *
* Revision 1.5 2008/02/24 00:42:53 james
* *** empty log message ***
*
@@ -139,3 +142,14 @@ client_termios (struct termios *termios)
cfsetispeed (termios, B9600);
cfsetospeed (termios, B9600);
}
+
+int fput_cp(FILE *f,uint32_t ch)
+{
+char buf[4];
+int i;
+i=utf8_encode(buf,ch);
+
+if (!i) return 0;
+
+return fwrite(buf,i,1,f);
+}