[hackers] [sbase] Return number of bytes read in readrune() || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:53:33 +0100 (CET)

commit f2e6af73507db3b5ca42de10658b605ee25a1923
Author: FRIGN <dev_AT_frign.de>
Date: Sun Feb 1 03:43:54 2015 +0100

    Return number of bytes read in readrune()
    
    Could be useful in some cases...

diff --git a/libutf/readrune.c b/libutf/readrune.c
index 407182b..8fd003b 100644
--- a/libutf/readrune.c
+++ b/libutf/readrune.c
_AT_@ -42,5 +42,5 @@ readrune(const char *file, FILE *fp, Rune *r)
                         break;
                 }
         }
- return 1;
+ return i;
 }
Received on Tue Mar 24 2015 - 23:53:33 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:06:56 CET