summaryrefslogtreecommitdiffstats
path: root/src/segment/spseg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/segment/spseg.cpp')
-rw-r--r--src/segment/spseg.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/segment/spseg.cpp b/src/segment/spseg.cpp
index a710d47..6522b2e 100644
--- a/src/segment/spseg.cpp
+++ b/src/segment/spseg.cpp
@@ -20,6 +20,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <locale.h>
#include <glib.h>
#include "novel_types.h"
@@ -85,5 +86,14 @@ int main(int argc, char * argv[]){
g_phrases->store(chunk);
g_phrases->load(chunk);
+ char * linebuf = NULL;
+ size_t size = 0;
+ while(getline(&linebuf, &size, stdin)) {
+ if ( feof(stdin) )
+ break;
+ linebuf[strlen(linebuf) - 1] = '\0';
+
+
+ }
return 0;
}