diff options
author | james <> | 2008-02-27 01:31:14 +0000 |
---|---|---|
committer | james <> | 2008-02-27 01:31:14 +0000 |
commit | 4add819b42c292ee2a6fc4aeda782a447b1bcf27 (patch) | |
tree | 17b7f7ce7e45c6c6262db7cfeb548a4d6f1006e1 /src/util.c | |
parent | 74feb0db53bf6ed2d53ca59e3aed001f1160e62a (diff) | |
download | sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.gz sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.tar.bz2 sympathy-4add819b42c292ee2a6fc4aeda782a447b1bcf27.zip |
*** empty log message ***
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.7 2008/02/27 01:31:14 james + * *** empty log message *** + * * Revision 1.6 2008/02/27 00:54:16 james * *** empty log message *** * @@ -143,13 +146,15 @@ client_termios (struct termios *termios) cfsetospeed (termios, B9600); } -int fput_cp(FILE *f,uint32_t ch) +int +fput_cp (FILE * f, uint32_t ch) { -char buf[4]; -int i; -i=utf8_encode(buf,ch); + char buf[4]; + int i; + i = utf8_encode (buf, ch); -if (!i) return 0; + if (!i) + return 0; -return fwrite(buf,i,1,f); + return fwrite (buf, i, 1, f); } |